From b474cd8629823828fe40aec066b0d3b4786a60ad Mon Sep 17 00:00:00 2001 From: blockparole <48992448+blockparole@users.noreply.github.com> Date: Sat, 30 Nov 2019 02:37:58 +0100 Subject: [PATCH] cleanup --- .../module/modules/combat/AutoFeetPlace.java | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/main/java/me/zeroeightsix/kami/module/modules/combat/AutoFeetPlace.java b/src/main/java/me/zeroeightsix/kami/module/modules/combat/AutoFeetPlace.java index 5a7a428d..f9ea8434 100644 --- a/src/main/java/me/zeroeightsix/kami/module/modules/combat/AutoFeetPlace.java +++ b/src/main/java/me/zeroeightsix/kami/module/modules/combat/AutoFeetPlace.java @@ -143,23 +143,23 @@ public class AutoFeetPlace extends Module { } } + Vec3d[] offsetPattern = new Vec3d[0]; + int maxSteps = 0; + + if (mode.getValue().equals(Mode.FULL)) { + offsetPattern = Offsets.FULL; + maxSteps = Offsets.FULL.length; + } + + if (mode.getValue().equals(Mode.SURROUND)) { + offsetPattern = Offsets.SURROUND; + maxSteps = Offsets.SURROUND.length; + } + int blocksPlaced = 0; while (blocksPlaced < blocksPerTick.getValue()) { - Vec3d[] offsetPattern = new Vec3d[0]; - int maxSteps = 0; - - if (mode.getValue().equals(Mode.FULL)) { - offsetPattern = Offsets.FULL; - maxSteps = Offsets.FULL.length; - } - - if (mode.getValue().equals(Mode.SURROUND)) { - offsetPattern = Offsets.SURROUND; - maxSteps = Offsets.SURROUND.length; - } - if (offsetStep >= maxSteps) { offsetStep = 0; break;