mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 16:51:42 +00:00
FlowerPot: yield contained plant when block-picking
This commit is contained in:
parent
97a1d997e8
commit
7b23baa020
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user