mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-24 05:47:59 +01:00
Fixed inverted flight controls when flying as a pegasus
This commit is contained in:
parent
c83dedb0a4
commit
a3b833cafa
2 changed files with 4 additions and 2 deletions
|
@ -253,7 +253,9 @@ public class PlayerPhysics extends EntityPhysics<Pony> implements Tickable, Moti
|
||||||
velocity.y += (direction.y * 2.45 + Math.abs(direction.y) * 10) * getGravitySignum();
|
velocity.y += (direction.y * 2.45 + Math.abs(direction.y) * 10) * getGravitySignum();
|
||||||
|
|
||||||
if (player.isSneaking()) {
|
if (player.isSneaking()) {
|
||||||
velocity.y += (0.4 - 0.25) * getGravitySignum();
|
if (!isGravityNegative()) {
|
||||||
|
velocity.y += 0.4 - 0.25;
|
||||||
|
}
|
||||||
if (pony.sneakingChanged()) {
|
if (pony.sneakingChanged()) {
|
||||||
velocity.y += 0.75 * getGravitySignum();
|
velocity.y += 0.75 * getGravitySignum();
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,7 +25,7 @@ abstract class MixinKeyboardInput extends Input {
|
||||||
|
|
||||||
movementSideways = -movementSideways;
|
movementSideways = -movementSideways;
|
||||||
|
|
||||||
if (player.getMaster().abilities.flying || player.getPhysics().isFlying()) {
|
if (player.getMaster().abilities.flying && !player.getPhysics().isFlying()) {
|
||||||
tmp = jumping;
|
tmp = jumping;
|
||||||
jumping = sneaking;
|
jumping = sneaking;
|
||||||
sneaking = tmp;
|
sneaking = tmp;
|
||||||
|
|
Loading…
Reference in a new issue