From afae126fb07eb4ba5c67c145d49e0ff55ccb526e Mon Sep 17 00:00:00 2001 From: Justin Aquadro Date: Wed, 30 Jan 2013 21:24:47 -0500 Subject: [PATCH] Initializing Source property for created INbtObjects --- SubstrateCS/Source/Entity.cs | 2 ++ SubstrateCS/Source/Item.cs | 1 + SubstrateCS/Source/Level.cs | 2 ++ SubstrateCS/Source/TileEntity.cs | 2 ++ 4 files changed, 7 insertions(+) diff --git a/SubstrateCS/Source/Entity.cs b/SubstrateCS/Source/Entity.cs index 6dc1702..6be3adf 100644 --- a/SubstrateCS/Source/Entity.cs +++ b/SubstrateCS/Source/Entity.cs @@ -112,6 +112,8 @@ namespace Substrate _pos = new Vector3(); _motion = new Vector3(); _rotation = new Orientation(); + + _source = new TagNodeCompound(); } /// diff --git a/SubstrateCS/Source/Item.cs b/SubstrateCS/Source/Item.cs index 4c0bff7..28cdd8e 100644 --- a/SubstrateCS/Source/Item.cs +++ b/SubstrateCS/Source/Item.cs @@ -37,6 +37,7 @@ namespace Substrate public Item () { _enchantments = new List(); + _source = new TagNodeCompound(); } /// diff --git a/SubstrateCS/Source/Level.cs b/SubstrateCS/Source/Level.cs index 03d26c3..bc02f65 100644 --- a/SubstrateCS/Source/Level.cs +++ b/SubstrateCS/Source/Level.cs @@ -277,6 +277,8 @@ namespace Substrate GameType = GameType.SURVIVAL; UseMapFeatures = true; + + _source = new TagNodeCompound(); } /// diff --git a/SubstrateCS/Source/TileEntity.cs b/SubstrateCS/Source/TileEntity.cs index fe26ab4..616f982 100644 --- a/SubstrateCS/Source/TileEntity.cs +++ b/SubstrateCS/Source/TileEntity.cs @@ -75,6 +75,7 @@ namespace Substrate /// protected TileEntity () { + _source = new TagNodeCompound(); } /// @@ -84,6 +85,7 @@ namespace Substrate public TileEntity (string id) { _id = id; + _source = new TagNodeCompound(); } ///