diff --git a/src/pocketmine/block/Leaves.php b/src/pocketmine/block/Leaves.php index f79166841..5f16962db 100644 --- a/src/pocketmine/block/Leaves.php +++ b/src/pocketmine/block/Leaves.php @@ -169,10 +169,14 @@ class Leaves extends Transparent{ return $this->getLevel()->setBlock($this, $this, true); } + public function getVariantBitmask() : int{ + return 0x03; + } + public function getDrops(Item $item) : array{ $drops = []; - $variantMeta = $this->getDamage() & 0x03; + $variantMeta = $this->getVariant(); if($item->isShears()){ $drops[] = ItemFactory::get($this->getItemId(), $variantMeta, 1);