forked from mirrors/NBTExplorer
Minor adjustment
This commit is contained in:
parent
d56fcc288f
commit
46387e28b4
2 changed files with 9 additions and 6 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -30,7 +30,7 @@ namespace Substrate
|
|||
|
||||
private bool _autoLight = true;
|
||||
|
||||
public bool AutoRecalcLight
|
||||
public bool AutoLight
|
||||
{
|
||||
get { return _autoLight; }
|
||||
set { _autoLight = value; }
|
||||
|
|
Loading…
Reference in a new issue