Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-09-08 20:43:04 +02:00
Fix minecart rotation when not on rails (#2200)
This isn't perfect, but it's better than before, for sure.
Dieser Commit ist enthalten in:
Ursprung
ce000a496b
Commit
2aa131f9dc
@ -79,4 +79,10 @@ public class MinecartEntity extends Entity {
|
|||||||
public void moveAbsolute(GeyserSession session, Vector3f position, Vector3f rotation, boolean isOnGround, boolean teleported) {
|
public void moveAbsolute(GeyserSession session, Vector3f position, Vector3f rotation, boolean isOnGround, boolean teleported) {
|
||||||
super.moveAbsolute(session, position.add(0d, this.entityType.getOffset(), 0d), rotation, isOnGround, teleported);
|
super.moveAbsolute(session, position.add(0d, this.entityType.getOffset(), 0d), rotation, isOnGround, teleported);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Vector3f getBedrockRotation() {
|
||||||
|
// Note: minecart rotation on rails does not care about the actual rotation value
|
||||||
|
return Vector3f.from(0, rotation.getX(), 0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren