We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 94a8f3c commit 322a091Copy full SHA for 322a091
1 file changed
src/main/kotlin/com/lambda/module/modules/movement/Pitch40.kt
@@ -57,6 +57,11 @@ object Pitch40 : Module(
57
}
58
59
listen<TickEvent.Pre> {
60
+ if (!player.isGliding) {
61
+ reset(player)
62
+ return@listen
63
+ }
64
+
65
when (state) {
66
Pitch40State.GainSpeed -> {
67
lookAt(Rotation(player.yaw, PITCH_DOWN_DEFAULT)).requestBy(this@Pitch40)
@@ -87,12 +92,16 @@ object Pitch40 : Module(
87
92
88
93
89
94
onEnable {
90
- state = Pitch40State.GainSpeed
91
- lastPos = player.pos
- lastAngle = PITCH_UP_DEFAULT
95
96
97
98
99
+ fun reset(player: ClientPlayerEntity) {
100
+ state = Pitch40State.GainSpeed
101
+ lastPos = player.pos
102
+ lastAngle = PITCH_UP_DEFAULT
103
104
105
/**
106
* Get the player's current speed in meters per second.
107
*/
0 commit comments