Skip to content

Commit

Permalink
Fix minecart rotation when not on rails (GeyserMC#2200)
Browse files Browse the repository at this point in the history
This isn't perfect, but it's better than before, for sure.
  • Loading branch information
Camotoy authored May 9, 2021
1 parent ce000a4 commit 2aa131f
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,10 @@ public void updateBedrockMetadata(EntityMetadata entityMetadata, GeyserSession s
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);
}
}

0 comments on commit 2aa131f

Please sign in to comment.