menu
#10625904 customiesdevs\customies\block\CustomiesBlockFactory::registerBlock(): Argument #3 ($model) must be of type ?customiesdevs\customies\block\Model, Endiorite\Blocks\EndioriteModel given, called in /home/container/plugins/EndioriteCoreV3.5-pm5/src/Endiorite/Utils/Loader/Blocks.php on line 137

Submitted by PocketMine-MP 5.13.0

General information

Version: 5.13.0
Git commit: f193a990
Plugin involvement: Direct
Report date: 2024-04-03 06:01:22 +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 b4f7ae84-d189-4ee7-8895-b9811f2b8ff3 5.15.0-100-generic #110-Ubuntu SMP Wed Feb 7 13:27:48 UTC 2024 x86_64

Error information

Warning: the Customies plugin was directly involved in this crash. Please contact the plugin author.
Thread: Main
Message: customiesdevs\customies\block\CustomiesBlockFactory::registerBlock(): Argument #3 ($model) must be of type ?customiesdevs\customies\block\Model, Endiorite\Blocks\EndioriteModel given, called in /home/container/plugins/EndioriteCoreV3.5-pm5/src/Endiorite/Utils/Loader/Blocks.php on line 137
File: plugins/Customies-master/src/block/CustomiesBlockFactory
Line: #85
Type: TypeError
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
	}

/**
* Register a block to the BlockFactory and all the required mappings. A custom stateReader and stateWriter can be
* provided to allow for custom block state serialization.
* @phpstan-param (Closure(): Block) $blockFunc
* @phpstan-param null|(Closure(BlockStateWriter): Block) $serializer
* @phpstan-param null|(Closure(Block): BlockStateReader) $deserializer
*/
public function registerBlock(Closure $blockFunc, string $identifier, ?Model $model = null, ?CreativeInventoryInfo $creativeInfo = null, ?Closure $serializer = null, ?Closure $deserializer = null): void {
$block = $blockFunc();
if(!$block instanceof Block) {
throw new InvalidArgumentException("Class returned from closure is not a Block");
}

RuntimeBlockStateRegistry::getInstance()->register($block);
CustomiesItemFactory::getInstance()->registerBlockItem($identifier, $block);
$this->customBlocks[$identifier] = $block;

$propertiesTag = CompoundTag::create();
#0 plugins/EndioriteCoreV3.5-pm5/src/Endiorite/Utils/Loader/Blocks(137): customiesdevs\customies\block\CustomiesBlockFactory->registerBlock(object Closure#64702, string[21] endiorite:slime_green, object Endiorite\Blocks\EndioriteModel#175128, object customiesdevs\customies\item\CreativeInventoryInfo#64698)
#1 plugins/EndioriteCoreV3.5-pm5/src/Endiorite/Utils/Loader(81): Endiorite\Utils\Loader\Blocks::loadBlocks()
#2 plugins/EndioriteCoreV3.5-pm5/src/Endiorite/Main(93): Endiorite\Utils\Loader::loadBlocks()
#3 pmsrc/src/plugin/PluginBase(119): Endiorite\Main->onEnable()
#4 pmsrc/src/plugin/PluginManager(454): pocketmine\plugin\PluginBase->onEnableStateChange(true)
#5 pmsrc/src/Server(1404): pocketmine\plugin\PluginManager->enablePlugin(object Endiorite\Main#45494)
#6 pmsrc/src/Server(1035): pocketmine\Server->enablePlugins(object pocketmine\plugin\PluginEnableOrder#45267)
#7 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/)
#8 pmsrc/src/PocketMine(373): pocketmine\server()
#9 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