Forgot AutoTileTick property on BlockManager

This commit is contained in:
Justin Aquadro 2012-01-28 01:58:28 -05:00
parent 6473402fab
commit 0a99a45290

View file

@ -31,6 +31,7 @@ namespace Substrate
private bool _autoLight = true; private bool _autoLight = true;
private bool _autoFluid = false; private bool _autoFluid = false;
private bool _autoTileTick = false;
/// <summary> /// <summary>
/// Gets or sets a value indicating whether changes to blocks will trigger automatic lighting updates. /// Gets or sets a value indicating whether changes to blocks will trigger automatic lighting updates.
@ -50,6 +51,15 @@ namespace Substrate
set { _autoFluid = value; } set { _autoFluid = value; }
} }
/// <summary>
/// Gets or sets a value indicating whether changes to blocks will trigger automatic fluid updates.
/// </summary>
public bool AutoTileTick
{
get { return _autoTileTick; }
set { _autoTileTick = value; }
}
/// <summary> /// <summary>
/// Constructs a new <see cref="BlockManager"/> instance on top of the given <see cref="IChunkManager"/>. /// Constructs a new <see cref="BlockManager"/> instance on top of the given <see cref="IChunkManager"/>.
/// </summary> /// </summary>
@ -213,14 +223,17 @@ namespace Substrate
bool autolight = cache.Blocks.AutoLight; bool autolight = cache.Blocks.AutoLight;
bool autofluid = cache.Blocks.AutoFluid; bool autofluid = cache.Blocks.AutoFluid;
bool autoTileTick = cache.Blocks.AutoTileTick;
cache.Blocks.AutoLight = _autoLight; cache.Blocks.AutoLight = _autoLight;
cache.Blocks.AutoFluid = _autoFluid; cache.Blocks.AutoFluid = _autoFluid;
cache.Blocks.AutoTileTick = _autoTileTick;
cache.Blocks.SetID(x & chunkXMask, y & chunkYMask, z & chunkZMask, id); cache.Blocks.SetID(x & chunkXMask, y & chunkYMask, z & chunkZMask, id);
cache.Blocks.AutoFluid = autofluid; cache.Blocks.AutoFluid = autofluid;
cache.Blocks.AutoLight = autolight; cache.Blocks.AutoLight = autolight;
cache.Blocks.AutoTileTick = autoTileTick;
} }
#endregion #endregion