Fixed list nodes becoming out of sync with underlying NBT node

This commit is contained in:
Justin Aquadro 2012-10-04 21:56:36 -04:00
parent 36317ba95b
commit 28913deb70

View file

@ -56,8 +56,7 @@ namespace NBTExplorer.Model
return false;
if (Tag.Count == 0) {
Tag = new TagNodeList(type);
_container = new ListTagContainer(Tag);
Tag.ChangeValueType(type);
}
AppendTag(TagDataNode.DefaultTag(type));