FlowerPot: yield contained plant when block-picking

This commit is contained in:
Dylan K. Taylor 2019-02-28 17:49:48 +00:00
parent 97a1d997e8
commit 7b23baa020

View File

@ -147,6 +147,10 @@ class FlowerPot extends Flowable{
return $items;
}
public function getPickedItem() : Item{
return $this->plant !== null ? $this->plant->asItem() : parent::getPickedItem();
}
public function isAffectedBySilkTouch() : bool{
return false;
}