mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Fix minecart rotation when not on rails (#2200)
This isn't perfect, but it's better than before, for sure.
This commit is contained in:
parent
ce000a496b
commit
2aa131f9dc
1 changed files with 6 additions and 0 deletions
|
@ -79,4 +79,10 @@ public class MinecartEntity extends Entity {
|
|||
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);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Vector3f getBedrockRotation() {
|
||||
// Note: minecart rotation on rails does not care about the actual rotation value
|
||||
return Vector3f.from(0, rotation.getX(), 0);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue