fix settings for takeoff

This commit is contained in:
Bella 2020-03-30 11:32:14 -04:00
parent bb4b053123
commit 775aac7c0f
No known key found for this signature in database
GPG Key ID: 815562EA23BFE344
1 changed files with 9 additions and 2 deletions

View File

@ -33,13 +33,15 @@ public class ElytraFlight extends Module {
if (mc.player == null) return;
if (defaultSetting.getValue()) {
easyTakeOff.setValue(true);
takeOffMode.setValue(TakeoffMode.PACKET);
overrideMaxSpeed.setValue(false);
speedHighway.setValue(1.8f);
speedHighwayOverride.setValue(1.8f);
fallSpeed.setValue(-.003f);
fallSpeedHighway.setValue(.000050000002f);
fallSpeed.setValue(-.003f);
upSpeedBoost.setValue(0.08f);
downSpeedBoost.setValue(0.04f);
overrideMaxSpeed.setValue(false);
defaultSetting.setValue(false);
Command.sendChatMessage(getChatName() + " Set to defaults!");
Command.sendChatMessage(getChatName() + " Close and reopen the " + getName() + " settings menu to see changes");
@ -58,6 +60,11 @@ public class ElytraFlight extends Module {
}
}
if (mode.getValue().equals(ElytraFlightMode.HIGHWAY) && easyTakeOff.getValue() && mc.player.isElytraFlying()) {
easyTakeOff.setValue(false);
Command.sendChatMessage(getChatName() + "Disabled takeoff!");
}
if (mc.player.capabilities.isFlying) {
if (mode.getValue().equals(ElytraFlightMode.HIGHWAY)) {
mc.player.setSprinting(false);