ItemFactory: Don't initialize creative items in init()

Wanting initialized item factory does not require initializing the creative inventory. This is often useless and unwanted extra baggage (when this is used on threads for example).
This commit is contained in:
Dylan K. Taylor 2018-02-15 17:09:38 +00:00
parent 8e6ec04abc
commit 456987e212
2 changed files with 2 additions and 2 deletions

View File

@ -48,6 +48,7 @@ use pocketmine\event\TimingsHandler;
use pocketmine\inventory\CraftingManager;
use pocketmine\inventory\Recipe;
use pocketmine\item\enchantment\Enchantment;
use pocketmine\item\Item;
use pocketmine\item\ItemFactory;
use pocketmine\lang\BaseLang;
use pocketmine\lang\TextContainer;
@ -1637,6 +1638,7 @@ class Server{
BlockFactory::init();
Enchantment::init();
ItemFactory::init();
Item::initCreativeItems();
Biome::init();
Effect::init();
Attribute::init();

View File

@ -254,8 +254,6 @@ class ItemFactory{
//TODO: RECORD_11
//TODO: RECORD_WAIT
}
Item::initCreativeItems();
}
/**