修复歼灭者转炮音效
This commit is contained in:
parent
ba71610b38
commit
0391edcef8
1 changed files with 1 additions and 1 deletions
|
@ -496,7 +496,7 @@ public class AnnihilatorEntity extends EnergyVehicleEntity implements GeoEntity,
|
|||
float offset = (float) VectorTool.calculateAngle(entity.getViewVector(1), barrelLookAt);
|
||||
|
||||
entityData.set(YAW, passenger.getYHeadRot());
|
||||
entityData.set(PITCH, passenger.getXRot() - offset);
|
||||
entityData.set(PITCH, Mth.clamp(passenger.getXRot() - offset, -45f , 5f));
|
||||
}
|
||||
|
||||
float diffY = Mth.wrapDegrees(entityData.get(YAW) - this.getYRot());
|
||||
|
|
Loading…
Add table
Reference in a new issue