From f98f180bbd429c61704cffa0aeffa0e595083bfc Mon Sep 17 00:00:00 2001 From: Intyre Date: Sun, 21 Feb 2016 22:21:50 +0100 Subject: [PATCH] fix for #3972 --- src/pocketmine/entity/Item.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pocketmine/entity/Item.php b/src/pocketmine/entity/Item.php index 76269d569..5493ea6e5 100644 --- a/src/pocketmine/entity/Item.php +++ b/src/pocketmine/entity/Item.php @@ -72,12 +72,14 @@ class Item extends Entity{ $this->thrower = $this->namedtag["Thrower"]; } - assert($this->namedtag->Item instanceof CompoundTag); if(!isset($this->namedtag->Item)){ $this->close(); return; } + + assert($this->namedtag->Item instanceof CompoundTag); + $this->item = NBT::getItemHelper($this->namedtag->Item);