Fixed issues when day/night cycle disabled.

This commit is contained in:
CrazyPants committed 2014-06-10 15:15:27 +08:00
1 parent a924e35d39
commit b4e64657e4
8 files changed
+15 -15

No files matched your search

@@ -212,8 +212,8 @@ public class TileCapacitorBank extends TileEntityEio implements IInternalPowerRe
}
if(!isContoller()) {
if(notifyNeighbours) {
worldObj.notifyBlockOfNeighborChange(xCoord, yCoord, zCoord, getBlockType());
if(notifyNeighbours) {
worldObj.notifyBlocksOfNeighborChange(xCoord, yCoord, zCoord, getBlockType());
notifyNeighbours = false;
}
return;
@@ -221,8 +221,8 @@ public class TileCapacitorBank extends TileEntityEio implements IInternalPowerRe
chargeItems();
boolean hasSignal = isRecievingRedstoneSignal();
boolean hasSignal = isRecievingRedstoneSignal();
if(inputControlMode == RedstoneControlMode.IGNORE) {
inputEnabled = true;
} else if(inputControlMode == RedstoneControlMode.NEVER) {
@@ -256,8 +256,8 @@ public class TileCapacitorBank extends TileEntityEio implements IInternalPowerRe
PacketHandler.sendToAllAround(new PacketPowerStorage(this), this, 64);
}
if(notifyNeighbours) {
worldObj.notifyBlockOfNeighborChange(xCoord, yCoord, zCoord, getBlockType());
if(notifyNeighbours) {
worldObj.notifyBlocksOfNeighborChange(xCoord, yCoord, zCoord, getBlockType());
notifyNeighbours = false;
}