Fixed inverted entities looking up when they should be looking down

This commit is contained in:
Sollace 2021-02-23 23:48:44 +02:00
parent 2c628e571d
commit b0c621b4b6

View file

@ -185,6 +185,9 @@ public class WorldRenderDelegate {
if (entity instanceof PlayerEntity) {
entity.prevYaw *= -1;
entity.yaw *= -1;
entity.prevPitch *= -1;
entity.pitch *= -1;
}
if (entity instanceof LivingEntity) {
@ -195,7 +198,5 @@ public class WorldRenderDelegate {
living.headYaw = -living.headYaw;
living.prevHeadYaw = -living.prevHeadYaw;
}
entity.prevPitch *= -1;
entity.pitch *= -1;
}
}