From 8542f87f377ff386201e17fc532ac324d53b9af0 Mon Sep 17 00:00:00 2001 From: blockparole <> Date: Sun, 3 Nov 2019 20:40:16 +0100 Subject: [PATCH] Aura: Enum Name Style --- .../kami/module/modules/combat/Aura.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main/java/me/zeroeightsix/kami/module/modules/combat/Aura.java b/src/main/java/me/zeroeightsix/kami/module/modules/combat/Aura.java index 77799d41..8071f81e 100644 --- a/src/main/java/me/zeroeightsix/kami/module/modules/combat/Aura.java +++ b/src/main/java/me/zeroeightsix/kami/module/modules/combat/Aura.java @@ -33,8 +33,8 @@ public class Aura extends Module { private Setting attackAnimals = register(Settings.b("Animals", false)); private Setting hitRange = register(Settings.d("Hit Range", 5.5d)); private Setting ignoreWalls = register(Settings.b("Ignore Walls", true)); - private Setting waitMode = register(Settings.e("Mode", WaitMode.Dynamic)); - private Setting waitTick = register(Settings.integerBuilder("Tick Delay").withMinimum(0).withValue(3).withVisibility(o -> waitMode.getValue().equals(WaitMode.Static)).build()); + private Setting waitMode = register(Settings.e("Mode", WaitMode.DYNAMIC)); + private Setting waitTick = register(Settings.integerBuilder("Tick Delay").withMinimum(0).withValue(3).withVisibility(o -> waitMode.getValue().equals(WaitMode.STATIC)).build()); private Setting switchTo32k = register(Settings.b("32k Switch", true)); private Setting onlyUse32k = register(Settings.b("32k Only", false)); @@ -52,7 +52,7 @@ public class Aura extends Module { return; } - if (waitMode.getValue().equals(WaitMode.Dynamic)) { + if (waitMode.getValue().equals(WaitMode.DYNAMIC)) { if (mc.player.getCooledAttackStrength(getLagComp()) < 1) { return; } else if (mc.player.ticksExisted % 2 != 0) { @@ -60,7 +60,7 @@ public class Aura extends Module { } } - if (waitMode.getValue().equals(WaitMode.Static) && waitTick.getValue() > 0) { + if (waitMode.getValue().equals(WaitMode.STATIC) && waitTick.getValue() > 0) { if (waitCounter < waitTick.getValue()) { waitCounter++; return; @@ -84,7 +84,7 @@ public class Aura extends Module { if (((EntityLivingBase) target).getHealth() <= 0) { continue; } - if (waitMode.getValue().equals(WaitMode.Dynamic) && ((EntityLivingBase) target).hurtTime != 0) { + if (waitMode.getValue().equals(WaitMode.DYNAMIC) && ((EntityLivingBase) target).hurtTime != 0) { continue; } if (!ignoreWalls.getValue() && (!mc.player.canEntityBeSeen(target) && !canEntityFeetBeSeen(target))) { @@ -180,7 +180,7 @@ public class Aura extends Module { } private float getLagComp() { - if (waitMode.getValue().equals(WaitMode.Dynamic)) { + if (waitMode.getValue().equals(WaitMode.DYNAMIC)) { return -(20 - LagCompensator.INSTANCE.getTickRate()); } return 0.0F; @@ -191,7 +191,7 @@ public class Aura extends Module { } private enum WaitMode { - Dynamic, Static + DYNAMIC, STATIC } }