mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-15 18:29:46 +00:00
fix for #3972
This commit is contained in:
parent
a6cd526e60
commit
f98f180bbd
@ -72,12 +72,14 @@ class Item extends Entity{
|
|||||||
$this->thrower = $this->namedtag["Thrower"];
|
$this->thrower = $this->namedtag["Thrower"];
|
||||||
}
|
}
|
||||||
|
|
||||||
assert($this->namedtag->Item instanceof CompoundTag);
|
|
||||||
|
|
||||||
if(!isset($this->namedtag->Item)){
|
if(!isset($this->namedtag->Item)){
|
||||||
$this->close();
|
$this->close();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
assert($this->namedtag->Item instanceof CompoundTag);
|
||||||
|
|
||||||
$this->item = NBT::getItemHelper($this->namedtag->Item);
|
$this->item = NBT::getItemHelper($this->namedtag->Item);
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user