From 4a24f40d8208b80aa6c799092ceb2fab077b88d3 Mon Sep 17 00:00:00 2001 From: Justin Aquadro Date: Tue, 16 Oct 2012 19:00:45 -0400 Subject: [PATCH] Fixed bug in NBT layer discarding root node name on read --- SubstrateCS/Source/Nbt/NbtTree.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SubstrateCS/Source/Nbt/NbtTree.cs b/SubstrateCS/Source/Nbt/NbtTree.cs index 242d157..b1b95c1 100644 --- a/SubstrateCS/Source/Nbt/NbtTree.cs +++ b/SubstrateCS/Source/Nbt/NbtTree.cs @@ -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; }