Skip to content

Commit

Permalink
make pitch setting use a float instead of an int
Browse files Browse the repository at this point in the history
  • Loading branch information
4d616e61 authored and Wide-Cat committed Aug 22, 2023
1 parent 68ccada commit 4bcaff4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ public class ElytraFly extends Module {
.build()
);

public final Setting<Integer> pitch = sgGeneral.add(new IntSetting.Builder()
public final Setting<Double> pitch = sgGeneral.add(new DoubleSetting.Builder()
.name("pitch")
.description("The pitch angle to look at when using the recast mode.")
.defaultValue(85)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down

0 comments on commit 4bcaff4

Please sign in to comment.