mirror of
https://github.com/Sollace/Unicopia.git
synced 2025-02-01 11:36:43 +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) {
|
||||
if (entity instanceof PlayerEntity player) {
|
||||
if (entity instanceof PlayerEntity) {
|
||||
entity.prevYaw *= -1;
|
||||
entity.setYaw(entity.getYaw() * -1);
|
||||
|
||||
|
@ -226,9 +226,7 @@ public class WorldRenderDelegate {
|
|||
entity.setPitch(entity.getPitch() * -1);
|
||||
}
|
||||
|
||||
if (entity instanceof LivingEntity) {
|
||||
LivingEntity living = (LivingEntity)entity;
|
||||
|
||||
if (entity instanceof LivingEntity living) {
|
||||
living.bodyYaw = -living.bodyYaw;
|
||||
living.prevBodyYaw = -living.prevBodyYaw;
|
||||
living.headYaw = -living.headYaw;
|
||||
|
|
Loading…
Reference in a new issue