File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/main/kotlin/com/lambda/module/modules/movement Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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) {
You can’t perform that action at this time.
0 commit comments