mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-16 11:58:00 +00:00
Convert CreativeInventory to singleton
This commit is contained in:
@@ -204,7 +204,7 @@ class InventoryManager{
|
||||
$items = [];
|
||||
$typeConverter = TypeConverter::getInstance();
|
||||
if(!$this->player->isSpectator()){ //fill it for all gamemodes except spectator
|
||||
foreach(CreativeInventory::getAll() as $i => $item){
|
||||
foreach(CreativeInventory::getInstance()->getAll() as $i => $item){
|
||||
$items[$i] = $typeConverter->coreItemStackToNet($item);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user