mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 10:22:56 +00:00
Convert CreativeInventory to singleton
This commit is contained in:
@ -39,7 +39,7 @@ class CreateItemAction extends InventoryAction{
|
||||
}
|
||||
|
||||
public function isValid(Player $source) : bool{
|
||||
return !$source->hasFiniteResources() and CreativeInventory::contains($this->sourceItem);
|
||||
return !$source->hasFiniteResources() and CreativeInventory::getInstance()->contains($this->sourceItem);
|
||||
}
|
||||
|
||||
public function execute(Player $source) : void{
|
||||
|
Reference in New Issue
Block a user