From 46387e28b438d4a7063e816273f8592edeac4a80 Mon Sep 17 00:00:00 2001 From: Justin Aquadro Date: Fri, 13 May 2011 03:44:05 +0000 Subject: [PATCH] Minor adjustment --- .../SubstrateCS/Source/AlphaBlockCollection.cs | 13 ++++++++----- Substrate/SubstrateCS/Source/BlockManager.cs | 2 +- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/Substrate/SubstrateCS/Source/AlphaBlockCollection.cs b/Substrate/SubstrateCS/Source/AlphaBlockCollection.cs index a7a82f7..4b3809d 100644 --- a/Substrate/SubstrateCS/Source/AlphaBlockCollection.cs +++ b/Substrate/SubstrateCS/Source/AlphaBlockCollection.cs @@ -183,15 +183,18 @@ namespace Substrate // Update tile entities - BlockInfoEx info1 = BlockInfo.BlockTable[oldid] as BlockInfoEx; - BlockInfoEx info2 = BlockInfo.BlockTable[id] as BlockInfoEx; + BlockInfo info1 = BlockInfo.BlockTable[oldid]; + BlockInfo info2 = BlockInfo.BlockTable[id]; - if (info1 != info2) { - if (info1 != null) { + BlockInfoEx einfo1 = info1 as BlockInfoEx; + BlockInfoEx einfo2 = info2 as BlockInfoEx; + + if (einfo1 != einfo2) { + if (einfo1 != null) { ClearTileEntity(x, y, z); } - if (info2 != null) { + if (einfo2 != null) { CreateTileEntity(x, y, z); } } diff --git a/Substrate/SubstrateCS/Source/BlockManager.cs b/Substrate/SubstrateCS/Source/BlockManager.cs index 68fef73..1fed8d8 100644 --- a/Substrate/SubstrateCS/Source/BlockManager.cs +++ b/Substrate/SubstrateCS/Source/BlockManager.cs @@ -30,7 +30,7 @@ namespace Substrate private bool _autoLight = true; - public bool AutoRecalcLight + public bool AutoLight { get { return _autoLight; } set { _autoLight = value; }