remove invalid variables

This commit is contained in:
noil 2020-05-07 20:30:20 -04:00
parent 589accfe6f
commit 935460b426
1 changed files with 3 additions and 3 deletions

View File

@ -163,13 +163,13 @@ public final class ElytraFlyModule extends Module {
break;
case CONTROL:
final double[] directionSpeedControl = MathUtil.directionSpeed(this.speed.getValue());
mc.player.motionY = -this.idlefall.getValue();
mc.player.motionY = 0;
mc.player.motionX = 0;
mc.player.motionZ = 0;
if (mc.player.movementInput.jump) {
mc.player.motionY = this.upspd.getValue();
mc.player.motionY = this.speed.getValue() / 2;
} else if (mc.player.movementInput.sneak) {
mc.player.motionY = -this.downspd.getValue();
mc.player.motionY = -this.speed.getValue() / 2;
}
if (mc.player.movementInput.moveStrafe != 0 || mc.player.movementInput.moveForward != 0) {
mc.player.motionX = directionSpeedControl[0];