From 17359161fd10f082de4922fe5fdefea6b2701f6a Mon Sep 17 00:00:00 2001 From: Josh Date: Thu, 4 Jan 2018 17:49:02 +1100 Subject: [PATCH] Update for issue #10 Removes slow and fast gather and retains gather for 1 tick. --- .../src/main/java/net/simon987/cubotplugin/CubotDrill.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Plugin Cubot/src/main/java/net/simon987/cubotplugin/CubotDrill.java b/Plugin Cubot/src/main/java/net/simon987/cubotplugin/CubotDrill.java index e8e749f..975deab 100644 --- a/Plugin Cubot/src/main/java/net/simon987/cubotplugin/CubotDrill.java +++ b/Plugin Cubot/src/main/java/net/simon987/cubotplugin/CubotDrill.java @@ -18,8 +18,7 @@ public class CubotDrill extends CpuHardware { public static final int DEFAULT_ADDRESS = 5; private static final int DRILL_POLL = 1; - private static final int DRILL_GATHER_SLOW = 2; - private static final int DRILL_GATHER_FAST = 3; + private static final int DRILL_GATHER = 2; // simplified gather private Cubot cubot; @@ -40,7 +39,7 @@ public class CubotDrill extends CpuHardware { getCpu().getRegisterSet().getRegister("B").setValue(0); - } else if (a == DRILL_GATHER_SLOW || a == DRILL_GATHER_FAST) { + } else if (a == DRILL_GATHER) { if (cubot.spendEnergy(1400)) { if (cubot.getCurrentAction() == Action.IDLE) {