fix elytraflight oopsie

This commit is contained in:
Bella 2020-02-24 10:22:13 -05:00
parent a75b9c6cba
commit e126eb8b57
1 changed files with 0 additions and 10 deletions

View File

@ -23,9 +23,7 @@ public class ElytraFlight extends Module {
private Setting<Float> fallSpeed = register(Settings.floatBuilder("Fall Speed").withValue(-.003f).withVisibility(v -> !mode.getValue().equals(ElytraFlightMode.HIGHWAY)).build());
private Setting<Float> fallSpeedHighway = register(Settings.floatBuilder("Fall Speed H").withValue(0.000050000002f).withVisibility(v -> mode.getValue().equals(ElytraFlightMode.HIGHWAY)).build());
private Setting<Float> upSpeed = register(Settings.floatBuilder("Up Speed B").withValue(0.08f).withVisibility(v -> mode.getValue().equals(ElytraFlightMode.BOOST)).build());
private Setting<Float> upSpeedHighway = register(Settings.floatBuilder("Up Speed H").withValue(0.02f).withVisibility(v -> mode.getValue().equals(ElytraFlightMode.HIGHWAY)).build());
private Setting<Float> downSpeed = register(Settings.floatBuilder("Down Speed B").withValue(0.04f).withVisibility(v -> mode.getValue().equals(ElytraFlightMode.BOOST)).build());
private Setting<Float> downSpeedHighway = register(Settings.floatBuilder("Down Speed H").withValue(0.02f).withVisibility(v -> mode.getValue().equals(ElytraFlightMode.HIGHWAY)).build());
@Override
public void onUpdate() {
@ -34,9 +32,7 @@ public class ElytraFlight extends Module {
fallSpeed.setValue(-.003f);
fallSpeedHighway.setValue(.000050000002f);
upSpeed.setValue(0.08f);
upSpeedHighway.setValue(0.02f);
downSpeed.setValue(0.04f);
downSpeedHighway.setValue(0.02f);
defaultSetting.setValue(false);
Command.sendChatMessage("[ElytraFlight] Set to defaults!");
Command.sendChatMessage("[ElytraFlight] Close and reopen the ElytraFlight setting's menu to see changes");
@ -85,12 +81,6 @@ public class ElytraFlight extends Module {
mc.player.motionZ -= MathHelper.cos(yaw) * 0.05F;
}
break;
case HIGHWAY:
if (mc.gameSettings.keyBindJump.isKeyDown())
mc.player.motionY += upSpeedHighway.getValue();
else if (mc.gameSettings.keyBindSneak.isKeyDown())
mc.player.motionY -= downSpeedHighway.getValue();
break;
default:
mc.player.capabilities.setFlySpeed(.915f);
mc.player.capabilities.isFlying = true;