ItemBlock: get rid of -1 meta check (meta is never -1 in this code path now)

This commit is contained in:
Dylan K. Taylor 2020-06-20 09:52:02 +01:00
parent 62e7b0e2b1
commit d2089afbc3

View File

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