mirror of
https://github.com/Sollace/Unicopia.git
synced 2025-02-17 10:24:23 +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) {
|
if (entity instanceof PlayerEntity) {
|
||||||
entity.prevYaw *= -1;
|
entity.prevYaw *= -1;
|
||||||
entity.yaw *= -1;
|
entity.yaw *= -1;
|
||||||
|
|
||||||
|
entity.prevPitch *= -1;
|
||||||
|
entity.pitch *= -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (entity instanceof LivingEntity) {
|
if (entity instanceof LivingEntity) {
|
||||||
|
@ -195,7 +198,5 @@ public class WorldRenderDelegate {
|
||||||
living.headYaw = -living.headYaw;
|
living.headYaw = -living.headYaw;
|
||||||
living.prevHeadYaw = -living.prevHeadYaw;
|
living.prevHeadYaw = -living.prevHeadYaw;
|
||||||
}
|
}
|
||||||
entity.prevPitch *= -1;
|
|
||||||
entity.pitch *= -1;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue