Skip to content

Commit 20d03a8

Browse files
committed
missed a few rotation requests
1 parent ab00802 commit 20d03a8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,14 +133,14 @@ object ElytraAltitudeControl : Module(
133133
}
134134
ControlState.Pitch40Fly -> when (state) {
135135
Pitch40State.GainSpeed -> {
136-
player.pitch = pitch40DownAngle
136+
lookAt(Rotation(player.yaw, pitch40DownAngle)).requestBy(this@ElytraAltitudeControl)
137137
if (player.flySpeed() > pitch40SpeedThreshold) {
138138
state = Pitch40State.PitchUp
139139
}
140140
}
141141
Pitch40State.PitchUp -> {
142142
lastAngle -= 5f
143-
player.pitch = lastAngle
143+
lookAt(Rotation(player.yaw, lastAngle)).requestBy(this@ElytraAltitudeControl)
144144
if (lastAngle <= pitch40UpStartAngle) {
145145
state = Pitch40State.FlyUp
146146
if (pitch40UseFireworkOnUpTrajectory) {
@@ -152,7 +152,7 @@ object ElytraAltitudeControl : Module(
152152
}
153153
Pitch40State.FlyUp -> {
154154
lastAngle += pitch40AngleChangeRate
155-
player.pitch = lastAngle
155+
lookAt(Rotation(player.yaw, lastAngle)).requestBy(this@ElytraAltitudeControl)
156156
if (lastAngle >= 0f) {
157157
state = Pitch40State.GainSpeed
158158
if (logHeightGain) {

0 commit comments

Comments
 (0)