ItemFrame: fixed cloning null

This commit is contained in:
Dylan K. Taylor 2019-03-03 21:12:52 +00:00
parent f83e5c195c
commit 5017e61cb2

View File

@ -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;
}
/**