修复快艇瞄准bug
This commit is contained in:
parent
8d01508025
commit
4a07e5eb06
1 changed files with 2 additions and 2 deletions
|
@ -47,7 +47,7 @@ public abstract class CameraMixin {
|
|||
if (player != null) {
|
||||
ItemStack stack = player.getMainHandItem();
|
||||
|
||||
if ((player.getVehicle() != null && player.getVehicle() instanceof SpeedboatEntity boat && boat.getFirstPassenger() == player) && ClientEventHandler.zoomVehicle && stack.is(ItemStack.EMPTY.getItem())) {
|
||||
if ((player.getVehicle() != null && player.getVehicle() instanceof SpeedboatEntity boat && boat.getFirstPassenger() == player) && ClientEventHandler.zoomVehicle) {
|
||||
float yRot = boat.getYRot();
|
||||
if (yRot < 0) {
|
||||
yRot += 360;
|
||||
|
@ -179,7 +179,7 @@ public abstract class CameraMixin {
|
|||
}
|
||||
|
||||
if (thirdPerson && entity.getVehicle() instanceof Yx100Entity && !ClientEventHandler.zoomVehicle) {
|
||||
move(-getMaxZoom(4), 1, 0.0);
|
||||
move(-getMaxZoom(5), 1.5, 0.0);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue