diff --git a/src/pocketmine/block/FlowerPot.php b/src/pocketmine/block/FlowerPot.php index 33de6c9ad..d7505029a 100644 --- a/src/pocketmine/block/FlowerPot.php +++ b/src/pocketmine/block/FlowerPot.php @@ -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; }