Fixed players not rotating correctly when flying #99

This commit is contained in:
Sollace 2023-02-26 00:40:16 +00:00
parent dee27bb545
commit 262d87a12b

View file

@ -303,7 +303,7 @@ public class PlayerPhysics extends EntityPhysics<PlayerEntity> implements Tickab
entity.setVelocity(velocity.toImmutable()); entity.setVelocity(velocity.toImmutable());
if (isFlying() && !entity.isFallFlying() && !pony.isHanging() && pony.isClient()) { if (isFlying() && !entity.isFallFlying() && !pony.isHanging() && pony.isClient()) {
if (MineLPDelegate.getInstance().getPlayerPonyRace(entity).isEquine() && getHorizontalMotion() > 0.03) { if (!MineLPDelegate.getInstance().getPlayerPonyRace(entity).isEquine() && getHorizontalMotion() > 0.03) {
float pitch = ((LivingEntityDuck)entity).getLeaningPitch(); float pitch = ((LivingEntityDuck)entity).getLeaningPitch();
if (pitch < 1) { if (pitch < 1) {
if (pitch < 0.9F) { if (pitch < 0.9F) {