diff --git a/src/block/Leaves.php b/src/block/Leaves.php index 9f14d8d4e..42ce2b012 100644 --- a/src/block/Leaves.php +++ b/src/block/Leaves.php @@ -136,9 +136,9 @@ class Leaves extends Transparent{ return parent::place($tx, $item, $blockReplace, $blockClicked, $face, $clickVector, $player); } - public function getDrops(Item $item) : array{ + public function getDropsForCompatibleTool(Item $item) : array{ if(($item->getBlockToolType() & BlockToolType::SHEARS) !== 0){ - return $this->getDropsForCompatibleTool($item); + return parent::getDropsForCompatibleTool($item); } $drops = []; @@ -152,6 +152,10 @@ class Leaves extends Transparent{ return $drops; } + public function isAffectedBySilkTouch() : bool{ + return true; + } + public function getFlameEncouragement() : int{ return 30; }