From 95f4af1683f5c5e091c8ce74cc245bec9b4bc01e Mon Sep 17 00:00:00 2001 From: Jaggernaut555 Date: Sun, 31 Dec 2017 18:26:47 -0800 Subject: [PATCH] Added error flag set and increased cost --- .../src/main/java/net/simon987/cubotplugin/CubotLeg.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Plugin Cubot/src/main/java/net/simon987/cubotplugin/CubotLeg.java b/Plugin Cubot/src/main/java/net/simon987/cubotplugin/CubotLeg.java index cd58a2e..e457a5e 100644 --- a/Plugin Cubot/src/main/java/net/simon987/cubotplugin/CubotLeg.java +++ b/Plugin Cubot/src/main/java/net/simon987/cubotplugin/CubotLeg.java @@ -70,9 +70,12 @@ public class CubotLeg extends CpuHardware implements JSONSerialisable { } } else if (a == LEGS_JUMP) { // jump up to 3 spaces, each space costs 200 - if (b < 4 && cubot.getMaxEnergy() >= b * 200) { + if (b < 4 && cubot.getMaxEnergy() >= b * 300) { cubot.setJumpDistance(b); cubot.setCurrentAction(Action.JUMPING); + status.setErrorFlag(false); + } else { + status.setErrorFlag(true); } } }