From 4827bb6f51dd5a0f6ad50665316372c1c1d1f19b Mon Sep 17 00:00:00 2001 From: Justin Aquadro Date: Wed, 28 Nov 2012 23:23:11 -0500 Subject: [PATCH] Fixed wrong tag name for addition block ids --- SubstrateCS/Source/AnvilChunk.cs | 2 +- SubstrateCS/Source/AnvilSection.cs | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/SubstrateCS/Source/AnvilChunk.cs b/SubstrateCS/Source/AnvilChunk.cs index d13bbb6..4462a1d 100644 --- a/SubstrateCS/Source/AnvilChunk.cs +++ b/SubstrateCS/Source/AnvilChunk.cs @@ -19,7 +19,7 @@ namespace Substrate new SchemaNodeArray("SkyLight", 2048), new SchemaNodeArray("BlockLight", 2048), new SchemaNodeScaler("Y", TagType.TAG_BYTE), - new SchemaNodeArray("AddBlocks", 2048, SchemaOptions.OPTIONAL), + new SchemaNodeArray("Add", 2048, SchemaOptions.OPTIONAL), }), new SchemaNodeArray("Biomes", 256, SchemaOptions.OPTIONAL), new SchemaNodeIntArray("HeightMap", 256), diff --git a/SubstrateCS/Source/AnvilSection.cs b/SubstrateCS/Source/AnvilSection.cs index 5b3900e..c8d1438 100644 --- a/SubstrateCS/Source/AnvilSection.cs +++ b/SubstrateCS/Source/AnvilSection.cs @@ -15,7 +15,7 @@ namespace Substrate new SchemaNodeArray("SkyLight", 2048), new SchemaNodeArray("BlockLight", 2048), new SchemaNodeScaler("Y", TagType.TAG_BYTE), - new SchemaNodeArray("AddBlocks", 2048, SchemaOptions.OPTIONAL), + new SchemaNodeArray("Add", 2048, SchemaOptions.OPTIONAL), }; private const int XDIM = 16; @@ -128,9 +128,9 @@ namespace Substrate _skyLight = new YZXNibbleArray(XDIM, YDIM, ZDIM, ctree["SkyLight"] as TagNodeByteArray); _blockLight = new YZXNibbleArray(XDIM, YDIM, ZDIM, ctree["BlockLight"] as TagNodeByteArray); - if (!ctree.ContainsKey("AddBlocks")) - ctree["AddBlocks"] = new TagNodeByteArray(new byte[2048]); - _addBlocks = new YZXNibbleArray(XDIM, YDIM, ZDIM, ctree["AddBlocks"] as TagNodeByteArray); + if (!ctree.ContainsKey("Add")) + ctree["Add"] = new TagNodeByteArray(new byte[2048]); + _addBlocks = new YZXNibbleArray(XDIM, YDIM, ZDIM, ctree["Add"] as TagNodeByteArray); _tree = ctree; @@ -154,7 +154,7 @@ namespace Substrate } if (CheckAddBlocksEmpty()) - copy.Remove("AddBlocks"); + copy.Remove("Add"); return copy; } @@ -198,7 +198,7 @@ namespace Substrate tree.Add("Data", data); tree.Add("SkyLight", skyLight); tree.Add("BlockLight", blockLight); - tree.Add("AddBlocks", addBlocks); + tree.Add("Add", addBlocks); _tree = tree; }