mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-20 16:00:20 +00:00
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:
parent
8e6ec04abc
commit
456987e212
@ -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();
|
||||
|
@ -254,8 +254,6 @@ class ItemFactory{
|
||||
//TODO: RECORD_11
|
||||
//TODO: RECORD_WAIT
|
||||
}
|
||||
|
||||
Item::initCreativeItems();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user