Fixed bug in NBT layer discarding root node name on read

This commit is contained in:
Justin Aquadro 2012-10-16 19:00:45 -04:00
parent d4651bfdf6
commit 4a24f40d82

View file

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