mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-16 03:51:37 +00:00
@@ -136,9 +136,9 @@ class Leaves extends Transparent{
|
|||||||
return parent::place($tx, $item, $blockReplace, $blockClicked, $face, $clickVector, $player);
|
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){
|
if(($item->getBlockToolType() & BlockToolType::SHEARS) !== 0){
|
||||||
return $this->getDropsForCompatibleTool($item);
|
return parent::getDropsForCompatibleTool($item);
|
||||||
}
|
}
|
||||||
|
|
||||||
$drops = [];
|
$drops = [];
|
||||||
@@ -152,6 +152,10 @@ class Leaves extends Transparent{
|
|||||||
return $drops;
|
return $drops;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function isAffectedBySilkTouch() : bool{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
public function getFlameEncouragement() : int{
|
public function getFlameEncouragement() : int{
|
||||||
return 30;
|
return 30;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user