Fix custom flight using wrong control for moving upwards

This commit is contained in:
Moulberry committed 2024-12-18 11:04:18 -05:00
1 parent a376ac1cf6
commit 9decb5bc9e
1 file changed
+1 -2
@@ -41,7 +41,7 @@ public class EnhancedFlight {
float movementY = 0;
if (player.input.keyPresses.shift()) movementY -= 1;
if (player.input.keyPresses.sprint()) movementY += 1;
if (player.input.keyPresses.jump()) movementY += 1;
if (movementY != 0) {
player.move(MoverType.SELF, new Vec3(0, flyingSpeed * movementY * 0.98, 0));
@@ -84,7 +84,6 @@ public class EnhancedFlight {
player.setOnGround(false);
}
player.setNoGravity(originalHasNoGravity);
player.resetFallDistance();
if (player.isFallFlying()) player.stopFallFlying();