Skip to content

Commit f859ac0

Browse files
committed
change ElytraFly pitch setting to allow a step value of 1 millionth
1 parent 4bd59b1 commit f859ac0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • src/main/kotlin/com/lambda/module/modules/movement

src/main/kotlin/com/lambda/module/modules/movement/ElytraFly.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ object ElytraFly : Module(
8181
//ToDo: Implement these commented out settings
8282
private val takeoff by setting("Takeoff", true, "Automatically jumps and initiates gliding") { mode == FlyMode.Bounce }
8383
private val autoPitch by setting("Auto Pitch", true, "Automatically pitches the players rotation down to bounce at faster speeds") { mode == FlyMode.Bounce }
84-
private val pitch by setting("Pitch", 80, 0..90, 1) { mode == FlyMode.Bounce && autoPitch }
84+
private val pitch by setting("Pitch", 80.0, 0.0..90.0, 0.000001) { mode == FlyMode.Bounce && autoPitch }
8585
private val yMotionSetting by setting("Y Motion", false, "Cancels the players y velocity to aid speed") { mode == FlyMode.Bounce }
8686
private val yMotion
8787
get() = yMotionSetting && (!onlyOnDiagonal || abs(RotationManager.activeRotation.yaw % 90) > minDiagonalAngle)
@@ -233,7 +233,7 @@ object ElytraFly : Module(
233233
return
234234
}
235235

236-
if (autoPitch) rotationRequest { pitch(pitch.toFloat()) }.submit()
236+
if (autoPitch) rotationRequest { pitch(pitch) }.submit()
237237

238238
if (!player.isGliding) {
239239
if (takeoff && player.canTakeoff) {

0 commit comments

Comments
 (0)