mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-16 11:58:00 +00:00
ItemFrame: yield framed item when block-picking, fixes [1] in #2706
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user