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