diff --git a/src/main/java/com/atsuishio/superbwarfare/entity/Ah6Entity.java b/src/main/java/com/atsuishio/superbwarfare/entity/Ah6Entity.java index 62fb54a25..16da0506d 100644 --- a/src/main/java/com/atsuishio/superbwarfare/entity/Ah6Entity.java +++ b/src/main/java/com/atsuishio/superbwarfare/entity/Ah6Entity.java @@ -217,7 +217,16 @@ public class Ah6Entity extends MobileVehicleEntity implements GeoEntity, IHelico entity.setYBodyRot(this.getYRot()); float f2 = Mth.wrapDegrees(entity.getYRot() - this.getYRot()); + + int i = this.getPassengers().indexOf(entity); + float f3 = Mth.clamp(f2, -80.0F, 80.0F); + if (i == 2) { + f3 = Mth.clamp(f2, -160.0F, -20.0F); + } + if (i == 3) { + f3 = Mth.clamp(f2, 20.0F, 160.0F); + } entity.yRotO += f3 - f2; entity.setYRot(entity.getYRot() + f3 - f2); entity.setYHeadRot(entity.getYRot()); diff --git a/src/main/java/com/atsuishio/superbwarfare/entity/SpeedboatEntity.java b/src/main/java/com/atsuishio/superbwarfare/entity/SpeedboatEntity.java index 29e982dcd..751ac2bf5 100644 --- a/src/main/java/com/atsuishio/superbwarfare/entity/SpeedboatEntity.java +++ b/src/main/java/com/atsuishio/superbwarfare/entity/SpeedboatEntity.java @@ -322,7 +322,6 @@ public class SpeedboatEntity extends MobileVehicleEntity implements GeoEntity, I } } - Level level = player.level(); final Vec3 center = new Vec3(this.getX(), this.getEyeY(), this.getZ());