1
0
mirror of https://github.com/GeyserMC/Geyser.git synced 2025-12-19 14:59:27 +00:00

Fixed spinnin boat for touch device. (#6043)

This commit is contained in:
oryxel
2025-12-13 22:43:36 +07:00
committed by GitHub
parent 65fdb4c8a2
commit f67cd24af4

View File

@@ -186,10 +186,10 @@ public class BoatVehicleComponent extends VehicleComponent<BoatEntity> {
float acceleration = 0.0F; float acceleration = 0.0F;
final Vector2f input = vehicle.getSession().getPlayerEntity().getVehicleInput(); final Vector2f input = vehicle.getSession().getPlayerEntity().getVehicleInput();
boolean up = input.getY() > 0; boolean up = input.getY() > 0.35;
boolean down = input.getY() < 0; boolean down = input.getY() < -0.35;
boolean left = input.getX() > 0; boolean left = input.getX() > 0.35;
boolean right = input.getX() < 0; boolean right = input.getX() < -0.35;
if (left) this.deltaRotation--; if (left) this.deltaRotation--;
if (right) this.deltaRotation++; if (right) this.deltaRotation++;