mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-23 21:38:00 +01:00
Fixed inverted entities looking up when they should be looking down
This commit is contained in:
parent
2c628e571d
commit
b0c621b4b6
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue