mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 17:59:48 +00:00
Convert ItemFactory to singleton
This commit is contained in:
@ -193,7 +193,7 @@ class Bed extends Transparent{
|
||||
}
|
||||
|
||||
public function asItem() : Item{
|
||||
return ItemFactory::get($this->idInfo->getItemId(), $this->color->getMagicNumber());
|
||||
return ItemFactory::getInstance()->get($this->idInfo->getItemId(), $this->color->getMagicNumber());
|
||||
}
|
||||
|
||||
public function getAffectedBlocks() : array{
|
||||
|
Reference in New Issue
Block a user