From 4bcaff43387aae70fbbb3fce5dc9261e9149333c Mon Sep 17 00:00:00 2001 From: Mana <57663038+Manaball123@users.noreply.github.com> Date: Tue, 22 Aug 2023 11:21:07 +0800 Subject: [PATCH] make pitch setting use a float instead of an int --- .../systems/modules/movement/elytrafly/ElytraFly.java | 2 +- .../systems/modules/movement/elytrafly/modes/Recast.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/meteordevelopment/meteorclient/systems/modules/movement/elytrafly/ElytraFly.java b/src/main/java/meteordevelopment/meteorclient/systems/modules/movement/elytrafly/ElytraFly.java index 1eabd6c3fd..face4d9924 100644 --- a/src/main/java/meteordevelopment/meteorclient/systems/modules/movement/elytrafly/ElytraFly.java +++ b/src/main/java/meteordevelopment/meteorclient/systems/modules/movement/elytrafly/ElytraFly.java @@ -202,7 +202,7 @@ public class ElytraFly extends Module { .build() ); - public final Setting pitch = sgGeneral.add(new IntSetting.Builder() + public final Setting pitch = sgGeneral.add(new DoubleSetting.Builder() .name("pitch") .description("The pitch angle to look at when using the recast mode.") .defaultValue(85) diff --git a/src/main/java/meteordevelopment/meteorclient/systems/modules/movement/elytrafly/modes/Recast.java b/src/main/java/meteordevelopment/meteorclient/systems/modules/movement/elytrafly/modes/Recast.java index 39492d75c1..8b21c15def 100644 --- a/src/main/java/meteordevelopment/meteorclient/systems/modules/movement/elytrafly/modes/Recast.java +++ b/src/main/java/meteordevelopment/meteorclient/systems/modules/movement/elytrafly/modes/Recast.java @@ -45,7 +45,7 @@ public void onTick() { setPressed(mc.options.forwardKey, true); if (elytraFly.autoJump.get()) setPressed(mc.options.jumpKey, true); mc.player.setYaw(getSmartYawDirection()); - mc.player.setPitch(elytraFly.pitch.get()); + mc.player.setPitch(elytraFly.pitch.get().floatValue()); // Rubberbanding if (rubberbanded && elytraFly.restart.get()) {