Fixed controller still drawing power even if disabled

This commit is contained in:
Raoul Van den Berge
2016-06-09 21:44:31 +02:00
parent 532d31cd7b
commit 636f06b56e
2 changed files with 5 additions and 1 deletions

View File

@@ -121,8 +121,11 @@ public class TileController extends TileBase implements IEnergyReceiver, ISynchr
craftingTasks.pop();
}
}
} else {
} else if (!machines.isEmpty()) {
// Machine list should NOT be empty to trigger a disconnect
// We need to sync machines again to reset energy usage etc
disconnectAll();
syncMachines();
}
if (couldRun != mayRun()) {