From d2089afbc33ef03026490a5f325fc16b95604dba Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Sat, 20 Jun 2020 09:52:02 +0100 Subject: [PATCH] ItemBlock: get rid of -1 meta check (meta is never -1 in this code path now) --- src/item/ItemBlock.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/item/ItemBlock.php b/src/item/ItemBlock.php index aa207e924..ab7980354 100644 --- a/src/item/ItemBlock.php +++ b/src/item/ItemBlock.php @@ -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{