Move Attribute and Effect init calls to Entity::init()

since entities are dependent on these, they should be here.
This commit is contained in:
Dylan K. Taylor 2018-03-02 10:05:50 +00:00
parent 9d018e8d9e
commit fa6d44ea9e
2 changed files with 4 additions and 4 deletions

View File

@ -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);

View File

@ -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();
}