fix detector

This commit is contained in:
Raoul Van den Berge
2016-01-01 23:40:13 +01:00
parent c245da1deb
commit 811035d17a
2 changed files with 20 additions and 2 deletions

View File

@@ -101,7 +101,8 @@ public class TileDetector extends TileMachine implements IInventory, ISidedInven
if (powered != lastPowered)
{
worldObj.notifyBlockOfStateChange(pos, StorageCraftBlocks.DETECTOR); // @TODO: redstone update
worldObj.markBlockForUpdate(pos);
worldObj.notifyNeighborsOfStateChange(pos, StorageCraftBlocks.DETECTOR);
}
}
}
@@ -195,8 +196,10 @@ public class TileDetector extends TileMachine implements IInventory, ISidedInven
powered = buf.readBoolean();
if (powered != lastPowered) {
if (powered != lastPowered)
{
worldObj.markBlockForUpdate(pos);
worldObj.notifyNeighborsOfStateChange(pos, StorageCraftBlocks.DETECTOR);
}
}