forked from mirrors/NBTExplorer
Initializing Source property for created INbtObjects
This commit is contained in:
parent
ac02a672ac
commit
afae126fb0
4 changed files with 7 additions and 0 deletions
|
@ -112,6 +112,8 @@ namespace Substrate
|
||||||
_pos = new Vector3();
|
_pos = new Vector3();
|
||||||
_motion = new Vector3();
|
_motion = new Vector3();
|
||||||
_rotation = new Orientation();
|
_rotation = new Orientation();
|
||||||
|
|
||||||
|
_source = new TagNodeCompound();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
@ -37,6 +37,7 @@ namespace Substrate
|
||||||
public Item ()
|
public Item ()
|
||||||
{
|
{
|
||||||
_enchantments = new List<Enchantment>();
|
_enchantments = new List<Enchantment>();
|
||||||
|
_source = new TagNodeCompound();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
@ -277,6 +277,8 @@ namespace Substrate
|
||||||
|
|
||||||
GameType = GameType.SURVIVAL;
|
GameType = GameType.SURVIVAL;
|
||||||
UseMapFeatures = true;
|
UseMapFeatures = true;
|
||||||
|
|
||||||
|
_source = new TagNodeCompound();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
@ -75,6 +75,7 @@ namespace Substrate
|
||||||
/// </summary>
|
/// </summary>
|
||||||
protected TileEntity ()
|
protected TileEntity ()
|
||||||
{
|
{
|
||||||
|
_source = new TagNodeCompound();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -84,6 +85,7 @@ namespace Substrate
|
||||||
public TileEntity (string id)
|
public TileEntity (string id)
|
||||||
{
|
{
|
||||||
_id = id;
|
_id = id;
|
||||||
|
_source = new TagNodeCompound();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
Loading…
Reference in a new issue