forked from mirrors/NBTExplorer
Fixed bug in NBT layer discarding root node name on read
This commit is contained in:
parent
d4651bfdf6
commit
4a24f40d82
1 changed files with 1 additions and 1 deletions
|
@ -351,7 +351,7 @@ namespace Substrate.Nbt
|
|||
{
|
||||
TagType type = (TagType)_stream.ReadByte();
|
||||
if (type == TagType.TAG_COMPOUND) {
|
||||
ReadString(); // name
|
||||
_rootName = ReadString().ToTagString().Data; // name
|
||||
return ReadValue(type) as TagNodeCompound;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue