mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 18:32:55 +00:00
Block: added getDropsForIncompatibleTool()
This commit is contained in:
@ -47,14 +47,10 @@ class DeadBush extends Flowable{
|
||||
}
|
||||
}
|
||||
|
||||
public function getDrops(Item $item) : array{
|
||||
if(!$this->breakInfo->isToolCompatible($item)){
|
||||
return [
|
||||
VanillaItems::STICK()->setCount(mt_rand(0, 2))
|
||||
];
|
||||
}
|
||||
|
||||
return parent::getDrops($item);
|
||||
public function getDropsForIncompatibleTool(Item $item) : array{
|
||||
return [
|
||||
VanillaItems::STICK()->setCount(mt_rand(0, 2))
|
||||
];
|
||||
}
|
||||
|
||||
public function isAffectedBySilkTouch() : bool{
|
||||
|
Reference in New Issue
Block a user