Aura: Rename WaitMode Enum Values

This commit is contained in:
blockparole 2019-11-03 19:38:39 +01:00
parent 978039f7c5
commit fcdde15967
1 changed files with 6 additions and 6 deletions

View File

@ -33,7 +33,7 @@ public class Aura extends Module {
private Setting<Boolean> attackAnimals = register(Settings.b("Animals", false)); private Setting<Boolean> attackAnimals = register(Settings.b("Animals", false));
private Setting<Double> hitRange = register(Settings.d("Hit Range", 5.5d)); private Setting<Double> hitRange = register(Settings.d("Hit Range", 5.5d));
private Setting<Boolean> ignoreWalls = register(Settings.b("Ignore Walls", true)); private Setting<Boolean> ignoreWalls = register(Settings.b("Ignore Walls", true));
private Setting<WaitMode> waitMode = register(Settings.e("Mode", WaitMode.KAMI)); private Setting<WaitMode> waitMode = register(Settings.e("Mode", WaitMode.Dynamic));
private Setting<Double> waitTick = register(Settings.d("Tick Wait", 3.0)); private Setting<Double> waitTick = register(Settings.d("Tick Wait", 3.0));
private Setting<Boolean> switchTo32k = register(Settings.b("32k Switch", true)); private Setting<Boolean> switchTo32k = register(Settings.b("32k Switch", true));
private Setting<Boolean> onlyUse32k = register(Settings.b("32k Only", false)); private Setting<Boolean> onlyUse32k = register(Settings.b("32k Only", false));
@ -52,7 +52,7 @@ public class Aura extends Module {
return; return;
} }
if (waitMode.getValue().equals(WaitMode.KAMI)) { if (waitMode.getValue().equals(WaitMode.Dynamic)) {
if (mc.player.getCooledAttackStrength(getLagComp()) < 1) { if (mc.player.getCooledAttackStrength(getLagComp()) < 1) {
return; return;
} else if (mc.player.ticksExisted % 2 != 0) { } else if (mc.player.ticksExisted % 2 != 0) {
@ -60,7 +60,7 @@ public class Aura extends Module {
} }
} }
if (waitMode.getValue().equals(WaitMode.TICK) && waitTick.getValue() > 0) { if (waitMode.getValue().equals(WaitMode.Static) && waitTick.getValue() > 0) {
if (waitCounter < waitTick.getValue()) { if (waitCounter < waitTick.getValue()) {
waitCounter++; waitCounter++;
return; return;
@ -84,7 +84,7 @@ public class Aura extends Module {
if (((EntityLivingBase) target).getHealth() <= 0) { if (((EntityLivingBase) target).getHealth() <= 0) {
continue; continue;
} }
if (waitMode.getValue().equals(WaitMode.KAMI) && ((EntityLivingBase) target).hurtTime != 0) { if (waitMode.getValue().equals(WaitMode.Dynamic) && ((EntityLivingBase) target).hurtTime != 0) {
continue; continue;
} }
if (!ignoreWalls.getValue() && (!mc.player.canEntityBeSeen(target) && !canEntityFeetBeSeen(target))) { if (!ignoreWalls.getValue() && (!mc.player.canEntityBeSeen(target) && !canEntityFeetBeSeen(target))) {
@ -180,7 +180,7 @@ public class Aura extends Module {
} }
private float getLagComp() { private float getLagComp() {
if (waitMode.getValue().equals(WaitMode.KAMI)) { if (waitMode.getValue().equals(WaitMode.Dynamic)) {
return -(20 - LagCompensator.INSTANCE.getTickRate()); return -(20 - LagCompensator.INSTANCE.getTickRate());
} }
return 0.0F; return 0.0F;
@ -191,7 +191,7 @@ public class Aura extends Module {
} }
private enum WaitMode { private enum WaitMode {
KAMI, TICK Dynamic, Static
} }
} }