Correctly rotate pegasus wings when flying/gliding

This commit is contained in:
Sollace 2023-02-26 00:41:02 +00:00
parent 262d87a12b
commit 051e801862

View file

@ -121,8 +121,11 @@ public class PlayerPhysics extends EntityPhysics<PlayerEntity> implements Tickab
spreadAmount += Math.sin(pony.asEntity().age * 4F) * 8; spreadAmount += Math.sin(pony.asEntity().age * 4F) * 8;
} else { } else {
if (isGliding()) { if (isGliding()) {
spreadAmount += 2.5F; spreadAmount += MineLPDelegate.getInstance().getPlayerPonyRace(entity).isEquine() ? -0.8F : 2.5F;
} else { } else {
if (MineLPDelegate.getInstance().getPlayerPonyRace(entity).isEquine()) {
spreadAmount -= 1.8F;
}
spreadAmount += strafe * 10; spreadAmount += strafe * 10;
spreadAmount += thrustScale * 24; spreadAmount += thrustScale * 24;
} }