PM-NG and DavyCraft648/Customies-NG - Blocks Mixing Up and Not Working
Closed this issue · 0 comments
Issue description
Expected result: I expected the blocks to be added successfully without any issues.
Actual result: Upon adding the blocks, they get mixed up and stop working properly.
Steps to reproduce the issue
- Set up PM-NG and DavyCraft648/Customies-NG
- Attempt to add blocks
OS and versions
PocketMine-MP: PM-NG
PHP: 8.2
Server OS: Mac M1
Game version: Android/iOS/Win10/Xbox/PS4/Switch (delete as appropriate)
Plugins
Any plugin, that adds blocks
class CustomBlock { public function __construct() { $material = new Material(Material::TARGET_ALL, "basalt", Material::RENDER_METHOD_ALPHA_TEST); $model = new Model([$material], "geometry.exemple", new Vector3(-8, 0, -8), new Vector3(16, 16, 16)); $creativeInfo = new CreativeInventoryInfo(CreativeInventoryInfo::CATEGORY_NATURE, CreativeInventoryInfo::GROUP_WOOD); CustomiesBlockFactory::getInstance()->registerBlock(fn(int $id) => new Block(new BlockIdentifier($id /* Tile */), "Block Test", new BlockTypeInfo(BlockBreakInfo::axe(3))), "servername:block_exemple", $model, $creativeInfo); } }
public function onEnable() : void { new CustomBlock(); }