mirror of
https://github.com/Sollace/Unicopia.git
synced 2025-02-01 19:46:42 +01:00
Fix one more warning
This commit is contained in:
parent
136267f439
commit
fd8a2f3f32
1 changed files with 2 additions and 4 deletions
|
@ -218,7 +218,7 @@ public class WorldRenderDelegate {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void flipAngles(Entity entity) {
|
private void flipAngles(Entity entity) {
|
||||||
if (entity instanceof PlayerEntity player) {
|
if (entity instanceof PlayerEntity) {
|
||||||
entity.prevYaw *= -1;
|
entity.prevYaw *= -1;
|
||||||
entity.setYaw(entity.getYaw() * -1);
|
entity.setYaw(entity.getYaw() * -1);
|
||||||
|
|
||||||
|
@ -226,9 +226,7 @@ public class WorldRenderDelegate {
|
||||||
entity.setPitch(entity.getPitch() * -1);
|
entity.setPitch(entity.getPitch() * -1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (entity instanceof LivingEntity) {
|
if (entity instanceof LivingEntity living) {
|
||||||
LivingEntity living = (LivingEntity)entity;
|
|
||||||
|
|
||||||
living.bodyYaw = -living.bodyYaw;
|
living.bodyYaw = -living.bodyYaw;
|
||||||
living.prevBodyYaw = -living.prevBodyYaw;
|
living.prevBodyYaw = -living.prevBodyYaw;
|
||||||
living.headYaw = -living.headYaw;
|
living.headYaw = -living.headYaw;
|
||||||
|
|
Loading…
Reference in a new issue