mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 02:08:21 +00:00
Convert ItemFactory to singleton
This commit is contained in:
@ -111,6 +111,6 @@ class Skull extends Flowable{
|
||||
}
|
||||
|
||||
public function asItem() : Item{
|
||||
return ItemFactory::get(ItemIds::SKULL, $this->skullType->getMagicNumber());
|
||||
return ItemFactory::getInstance()->get(ItemIds::SKULL, $this->skullType->getMagicNumber());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user