File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed
src/main/kotlin/com/lambda/client/module/modules/movement Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -482,14 +482,15 @@ object ElytraFlight : Module(
482
482
event.cancel()
483
483
}
484
484
485
- private fun SafeClientEvent.vanillaMode () {
486
- secondY = player.posY
487
- packetPitch = when {
488
- world.loadedEntityList.any { it is EntityFireworkRocket && it.boostedEntity == player } -> - rocketPitch
489
- firstY - secondY > 0 -> downPitch
490
- else -> - upPitch}
491
- firstY = player.posY
492
- }
485
+ private fun SafeClientEvent.vanillaMode () {
486
+ secondY = player.posY
487
+ packetPitch = when {
488
+ world.loadedEntityList.any { it is EntityFireworkRocket && it.boostedEntity == player } -> - rocketPitch
489
+ firstY - secondY > 0 -> downPitch
490
+ else -> - upPitch
491
+ }
492
+ firstY = player.posY
493
+ }
493
494
494
495
fun shouldSwing (): Boolean {
495
496
return isEnabled && isFlying && ! autoLanding && (mode.value == ElytraFlightMode .CONTROL || mode.value == ElytraFlightMode .PACKET )
You can’t perform that action at this time.
0 commit comments