mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-09 07:20:15 +00:00
ItemFrame: fixed cloning null
This commit is contained in:
parent
f83e5c195c
commit
5017e61cb2
@ -99,7 +99,7 @@ class ItemFrame extends Flowable{
|
||||
* @return Item|null
|
||||
*/
|
||||
public function getFramedItem() : ?Item{
|
||||
return clone $this->framedItem;
|
||||
return $this->framedItem !== null ? clone $this->framedItem : null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user