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:
Camotoy 2021-05-09 01:11:42 -04:00 committed by GitHub
parent ce000a496b
commit 2aa131f9dc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}
}