mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 10:53:05 +00:00
FlowerPot: yield contained plant when block-picking
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user