This commit is contained in:
Intyre 2016-02-21 22:21:50 +01:00
parent a6cd526e60
commit f98f180bbd
No known key found for this signature in database
GPG Key ID: B06D41D26935005A

View File

@ -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);