Skip to content

Commit 15077fe

Browse files
committed
Fix formatting
1 parent c9ab4c0 commit 15077fe

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

src/main/kotlin/com/lambda/client/module/modules/movement/ElytraFlight.kt

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -482,14 +482,15 @@ object ElytraFlight : Module(
482482
event.cancel()
483483
}
484484

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+
}
493494

494495
fun shouldSwing(): Boolean {
495496
return isEnabled && isFlying && !autoLanding && (mode.value == ElytraFlightMode.CONTROL || mode.value == ElytraFlightMode.PACKET)

0 commit comments

Comments
 (0)