forked from RepoMirrors/kami-blue
fix settings for takeoff
This commit is contained in:
parent
bb4b053123
commit
775aac7c0f
|
@ -33,13 +33,15 @@ public class ElytraFlight extends Module {
|
||||||
if (mc.player == null) return;
|
if (mc.player == null) return;
|
||||||
|
|
||||||
if (defaultSetting.getValue()) {
|
if (defaultSetting.getValue()) {
|
||||||
|
easyTakeOff.setValue(true);
|
||||||
|
takeOffMode.setValue(TakeoffMode.PACKET);
|
||||||
|
overrideMaxSpeed.setValue(false);
|
||||||
speedHighway.setValue(1.8f);
|
speedHighway.setValue(1.8f);
|
||||||
speedHighwayOverride.setValue(1.8f);
|
speedHighwayOverride.setValue(1.8f);
|
||||||
fallSpeed.setValue(-.003f);
|
|
||||||
fallSpeedHighway.setValue(.000050000002f);
|
fallSpeedHighway.setValue(.000050000002f);
|
||||||
|
fallSpeed.setValue(-.003f);
|
||||||
upSpeedBoost.setValue(0.08f);
|
upSpeedBoost.setValue(0.08f);
|
||||||
downSpeedBoost.setValue(0.04f);
|
downSpeedBoost.setValue(0.04f);
|
||||||
overrideMaxSpeed.setValue(false);
|
|
||||||
defaultSetting.setValue(false);
|
defaultSetting.setValue(false);
|
||||||
Command.sendChatMessage(getChatName() + " Set to defaults!");
|
Command.sendChatMessage(getChatName() + " Set to defaults!");
|
||||||
Command.sendChatMessage(getChatName() + " Close and reopen the " + getName() + " settings menu to see changes");
|
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 (mc.player.capabilities.isFlying) {
|
||||||
if (mode.getValue().equals(ElytraFlightMode.HIGHWAY)) {
|
if (mode.getValue().equals(ElytraFlightMode.HIGHWAY)) {
|
||||||
mc.player.setSprinting(false);
|
mc.player.setSprinting(false);
|
||||||
|
|
Loading…
Reference in New Issue