mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-08-31 07:21:17 +00:00
parent
61c59be299
commit
ec6103d61e
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user