Convert BlockFactory to singleton

This commit is contained in:
Dylan K. Taylor
2020-04-23 23:45:13 +01:00
parent accc0da0cb
commit 13d784cd0c
24 changed files with 1121 additions and 1121 deletions

View File

@ -50,7 +50,7 @@ class ItemBlock extends Item{
}
public function getBlock() : Block{
return BlockFactory::get($this->blockId, $this->meta === -1 ? 0 : $this->meta & 0xf);
return BlockFactory::getInstance()->get($this->blockId, $this->meta === -1 ? 0 : $this->meta & 0xf);
}
public function getFuelTime() : int{