Better redstone check

This commit is contained in:
Raoul Van den Berge
2016-05-14 14:13:00 +02:00
parent 7f55b28f1d
commit 3d83d7366a

View File

@@ -43,8 +43,10 @@ public abstract class TileMachine extends TileBase implements ISynchronizedConta
@Override @Override
public void update() { public void update() {
super.update();
if (!worldObj.isRemote) { if (!worldObj.isRemote) {
if (ticks == 0) { if (ticks == 1) {
block = worldObj.getBlockState(pos).getBlock(); block = worldObj.getBlockState(pos).getBlock();
searchController(); searchController();
@@ -54,8 +56,6 @@ public abstract class TileMachine extends TileBase implements ISynchronizedConta
onDisconnected(); onDisconnected();
} }
} }
super.update();
} }
public void onConnected(TileController controller) { public void onConnected(TileController controller) {