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(
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 )
You can’t perform that action at this time.
0 commit comments