mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-11 05:55:33 +00:00
ItemFrame: yield framed item when block-picking, fixes [1] in #2706
This commit is contained in:
parent
d679fb7546
commit
97a1d997e8
@ -193,6 +193,10 @@ class ItemFrame extends Flowable{
|
||||
return $drops;
|
||||
}
|
||||
|
||||
public function getPickedItem() : Item{
|
||||
return $this->framedItem !== null ? clone $this->framedItem : parent::getPickedItem();
|
||||
}
|
||||
|
||||
public function isAffectedBySilkTouch() : bool{
|
||||
return false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user