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