mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-09 23:39:43 +00:00
ItemBlock: get rid of -1 meta check (meta is never -1 in this code path now)
This commit is contained in:
parent
62e7b0e2b1
commit
d2089afbc3
@ -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{
|
||||
|
Loading…
x
Reference in New Issue
Block a user