mirror of
https://github.com/darksaid98/Flashback.git
synced 2026-12-03 14:38:50 +00:00
Fix custom flight using wrong control for moving upwards
This commit is contained in:
1 parent
a376ac1cf6
commit
9decb5bc9e
1 file changed
+1
-2
@@ -41,7 +41,7 @@ public class EnhancedFlight {
|
|||||||
|
|
||||||
float movementY = 0;
|
float movementY = 0;
|
||||||
if (player.input.keyPresses.shift()) movementY -= 1;
|
if (player.input.keyPresses.shift()) movementY -= 1;
|
||||||
if (player.input.keyPresses.sprint()) movementY += 1;
|
if (player.input.keyPresses.jump()) movementY += 1;
|
||||||
if (movementY != 0) {
|
if (movementY != 0) {
|
||||||
player.move(MoverType.SELF, new Vec3(0, flyingSpeed * movementY * 0.98, 0));
|
player.move(MoverType.SELF, new Vec3(0, flyingSpeed * movementY * 0.98, 0));
|
||||||
|
|
||||||
@@ -84,7 +84,6 @@ public class EnhancedFlight {
|
|||||||
player.setOnGround(false);
|
player.setOnGround(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
player.setNoGravity(originalHasNoGravity);
|
player.setNoGravity(originalHasNoGravity);
|
||||||
player.resetFallDistance();
|
player.resetFallDistance();
|
||||||
if (player.isFallFlying()) player.stopFallFlying();
|
if (player.isFallFlying()) player.stopFallFlying();
|
||||||
|
|||||||
Reference in new issue
Block a user