diff --git a/src/pocketmine/block/Potato.php b/src/pocketmine/block/Potato.php index 3fda225b1..b278080ab 100644 --- a/src/pocketmine/block/Potato.php +++ b/src/pocketmine/block/Potato.php @@ -40,9 +40,13 @@ class Potato extends Crops{ } public function getDropsForCompatibleTool(Item $item) : array{ - return [ + $result = [ ItemFactory::get(Item::POTATO, 0, $this->getDamage() >= 0x07 ? mt_rand(1, 4) : 1) ]; + if($this->getDamage() >= 7 && mt_rand(0, 49) === 0){ + $result[] = ItemFactory::get(Item::POISONOUS_POTATO); + } + return $result; } public function getPickedItem() : Item{