Fixed block-pick on crops giving the crop block itself

This commit is contained in:
Dylan K. Taylor
2017-11-03 12:17:38 +00:00
parent 42ed03fd02
commit 451f5d0cd7
8 changed files with 33 additions and 3 deletions

View File

@ -43,4 +43,8 @@ class Potato extends Crops{
ItemFactory::get(Item::POTATO, 0, $this->getDamage() >= 0x07 ? mt_rand(1, 4) : 1)
];
}
public function getPickedItem() : Item{
return ItemFactory::get(Item::POTATO);
}
}