From 636f06b56e447d84c78605db1437e5525003a76f Mon Sep 17 00:00:00 2001 From: Raoul Van den Berge Date: Thu, 9 Jun 2016 21:44:31 +0200 Subject: [PATCH] Fixed controller still drawing power even if disabled --- CHANGELOG.md | 1 + .../java/refinedstorage/tile/controller/TileController.java | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 556de7535..28281e6e3 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ - Fixed stacks not splitting between storages correctly - 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 controller still drawing power even if disabled **Features** - Added an API diff --git a/src/main/java/refinedstorage/tile/controller/TileController.java b/src/main/java/refinedstorage/tile/controller/TileController.java index fbda7369f..2ca7e324d 100755 --- a/src/main/java/refinedstorage/tile/controller/TileController.java +++ b/src/main/java/refinedstorage/tile/controller/TileController.java @@ -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()) {