diff --git a/src/pocketmine/Server.php b/src/pocketmine/Server.php index 9b6adfe1c4..aeb390464c 100644 --- a/src/pocketmine/Server.php +++ b/src/pocketmine/Server.php @@ -33,8 +33,6 @@ use pocketmine\command\CommandSender; use pocketmine\command\ConsoleCommandSender; use pocketmine\command\PluginIdentifiableCommand; use pocketmine\command\SimpleCommandMap; -use pocketmine\entity\Attribute; -use pocketmine\entity\Effect; use pocketmine\entity\Entity; use pocketmine\entity\Skin; use pocketmine\event\HandlerList; @@ -1607,8 +1605,7 @@ class Server{ ItemFactory::init(); Item::initCreativeItems(); Biome::init(); - Effect::init(); - Attribute::init(); + $this->craftingManager = new CraftingManager(); $this->resourceManager = new ResourcePackManager($this->getDataPath() . "resource_packs" . DIRECTORY_SEPARATOR); diff --git a/src/pocketmine/entity/Entity.php b/src/pocketmine/entity/Entity.php index 496c8e60da..a0c7ae2ada 100644 --- a/src/pocketmine/entity/Entity.php +++ b/src/pocketmine/entity/Entity.php @@ -238,6 +238,9 @@ abstract class Entity extends Location implements Metadatable, EntityIds{ Entity::registerEntity(Zombie::class, false, ['Zombie', 'minecraft:zombie']); Entity::registerEntity(Human::class, true); + + Attribute::init(); + Effect::init(); }