We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d16aa98 commit 1b707f0Copy full SHA for 1b707f0
1 file changed
src/main/kotlin/com/lambda/module/modules/movement/elytrafly/modes/BounceElytraFly.kt
@@ -74,7 +74,10 @@ class BounceElytraFly(
74
context(safeContext: SafeContext)
75
private val yMotion
76
get() = yMotionSetting &&
77
- (!onlyOnDiagonal || abs(RotationManager.activeRotation.yaw % 90) > minDiagonalAngle) &&
+ (!onlyOnDiagonal || run {
78
+ val normalised = abs(RotationManager.activeRotation.yaw % 90)
79
+ normalised > minDiagonalAngle && normalised < 90 - minDiagonalAngle
80
+ }) &&
81
safeContext.player.isOnGround &&
82
safeContext.player.isGliding &&
83
Speedometer.calculateSpeed(true, SpeedUnit.BlocksPerSecond).let { speed ->
0 commit comments