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

@@ -7,6 +7,7 @@
- Fixed stacks not splitting between storages correctly - Fixed stacks not splitting between storages correctly
- Fixed storage not saving ItemStack capabilities - Fixed storage not saving ItemStack capabilities
- Fixed dropping items into crafting grid with mouse won't work if your mouse is in between items - Fixed dropping items into crafting grid with mouse won't work if your mouse is in between items
- Fixed controller still drawing power even if disabled
**Features** **Features**
- Added an API - Added an API

View File

@@ -121,8 +121,11 @@ public class TileController extends TileBase implements IEnergyReceiver, ISynchr
craftingTasks.pop(); 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(); disconnectAll();
syncMachines();
} }
if (couldRun != mayRun()) { if (couldRun != mayRun()) {