From 28913deb70cb376e683eda5f51ee6f1742909c56 Mon Sep 17 00:00:00 2001 From: Justin Aquadro Date: Thu, 4 Oct 2012 21:56:36 -0400 Subject: [PATCH] Fixed list nodes becoming out of sync with underlying NBT node --- Model/TagListDataNode.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Model/TagListDataNode.cs b/Model/TagListDataNode.cs index d1d456b..ecc630b 100644 --- a/Model/TagListDataNode.cs +++ b/Model/TagListDataNode.cs @@ -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));