diff --git a/src/pocketmine/item/ItemBlock.php b/src/pocketmine/item/ItemBlock.php index 865c0470d..4fa540b14 100644 --- a/src/pocketmine/item/ItemBlock.php +++ b/src/pocketmine/item/ItemBlock.php @@ -40,6 +40,7 @@ class ItemBlock extends Item{ */ public function __construct(int $blockId, int $meta = 0, int $itemId = null){ $this->blockId = $blockId; + $this->setDamage($meta); parent::__construct($itemId ?? $blockId, $meta, $this->getBlock()->getName()); } @@ -47,10 +48,6 @@ class ItemBlock extends Item{ return BlockFactory::get($this->blockId, $this->meta === -1 ? 0 : $this->meta & 0xf); } - public function getVanillaName() : string{ - return $this->getBlock()->getName(); - } - public function getFuelTime() : int{ return $this->getBlock()->getFuelTime(); }