mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-07 02:21:46 +00:00
Fixed item CompoundTags keeping the tag
name after NBT serialize/deserialize, close #1145
This commit is contained in:
parent
d92a6240d8
commit
adbc298909
@ -1059,7 +1059,9 @@ class Item implements ItemIds, \JsonSerializable{
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(isset($tag->tag) and $tag->tag instanceof CompoundTag){
|
if(isset($tag->tag) and $tag->tag instanceof CompoundTag){
|
||||||
$item->setNamedTag($tag->tag);
|
$t = clone $tag->tag;
|
||||||
|
$t->setName("");
|
||||||
|
$item->setNamedTag($t);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $item;
|
return $item;
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit 9c5ea394b0295549fa2c12cb090aad4519877b3a
|
Subproject commit ddac19dbbdd9e8b71611ab7fb91069619fcba6f9
|
Loading…
x
Reference in New Issue
Block a user