menu
#10625406 NgLamVN\InvCraft\Recipe::makeRecipe(): Argument #3 ($result) must be of type pocketmine\item\Item, null given, called in /home/container/plugins/InvCraft-PM5-pm5/src/NgLamVN/InvCraft/Loader.php on line 43

Submitted by PocketMine-MP 5.13.0

General information

Version: 5.13.0
Git commit: f193a990
Plugin involvement: Direct
Report date: 2024-04-03 05:43:52 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 1 seconds

System Information

PHP version: 8.2.13
JIT status: Not available
Operating system: linux
System banner: Linux d5f28517-db69-48dc-bf95-ec965ffed9ee 5.15.0-97-generic #107-Ubuntu SMP Wed Feb 7 13:26:48 UTC 2024 x86_64

Error information

Warning: the InvCraft plugin was directly involved in this crash. Please contact the plugin author.
Thread: Main
Message: NgLamVN\InvCraft\Recipe::makeRecipe(): Argument #3 ($result) must be of type pocketmine\item\Item, null given, called in /home/container/plugins/InvCraft-PM5-pm5/src/NgLamVN/InvCraft/Loader.php on line 43
File: plugins/InvCraft-PM5-pm5/src/NgLamVN/InvCraft/Recipe
Line: #37
Type: TypeError
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47

/**
* @param string $recipe_name
* @param Item[] $recipe_data
* @param Item $result
* @param int $mode
*
* @return Recipe
*/
public static function makeRecipe(string $recipe_name, array $recipe_data, Item $result, int $mode) : Recipe{
return new Recipe($recipe_name, $recipe_data, $result, $mode);
}

/**
* @param Recipe|Item[] $other
*
* @return bool
*/
public function isSame(Recipe|array $other) : bool{
if($other instanceof Recipe){
#0 plugins/InvCraft-PM5-pm5/src/NgLamVN/InvCraft/Loader(43): NgLamVN\InvCraft\Recipe::makeRecipe(string[7] icerune, array[9], null, int 0)
#1 plugins/InvCraft-PM5-pm5/src/NgLamVN/InvCraft/Loader(26): NgLamVN\InvCraft\Loader->loadRecipes()
#2 pmsrc/src/plugin/PluginBase(119): NgLamVN\InvCraft\Loader->onEnable()
#3 pmsrc/src/plugin/PluginManager(454): pocketmine\plugin\PluginBase->onEnableStateChange(true)
#4 pmsrc/src/Server(1404): pocketmine\plugin\PluginManager->enablePlugin(object NgLamVN\InvCraft\Loader#182249)
#5 pmsrc/src/Server(1035): pocketmine\Server->enablePlugins(object pocketmine\plugin\PluginEnableOrder#45235)
#6 pmsrc/src/PocketMine(350): pocketmine\Server->__construct(object pocketmine\thread\ThreadSafeClassLoader#6, object pocketmine\utils\MainLogger#3, string[16] /home/container/, string[24] /home/container/plugins/)
#7 pmsrc/src/PocketMine(373): pocketmine\server()
#8 pmsrc(11): require(string[60] phar:///home/container/PocketMine-MP.phar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies

Installed PHP Extensions

  • Show