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();
|
||||
_motion = new Vector3();
|
||||
_rotation = new Orientation();
|
||||
|
||||
_source = new TagNodeCompound();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -37,6 +37,7 @@ namespace Substrate
|
|||
public Item ()
|
||||
{
|
||||
_enchantments = new List<Enchantment>();
|
||||
_source = new TagNodeCompound();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -277,6 +277,8 @@ namespace Substrate
|
|||
|
||||
GameType = GameType.SURVIVAL;
|
||||
UseMapFeatures = true;
|
||||
|
||||
_source = new TagNodeCompound();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -75,6 +75,7 @@ namespace Substrate
|
|||
/// </summary>
|
||||
protected TileEntity ()
|
||||
{
|
||||
_source = new TagNodeCompound();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -84,6 +85,7 @@ namespace Substrate
|
|||
public TileEntity (string id)
|
||||
{
|
||||
_id = id;
|
||||
_source = new TagNodeCompound();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
Loading…
Reference in a new issue