Update DisplayBaseEntity.java

This commit is contained in:
strom 2024-07-07 16:41:34 +02:00 committed by GitHub
parent c8e0cdde68
commit c778c08f5e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -64,7 +64,7 @@ public class DisplayBaseEntity extends Entity {
} }
if (this.vehicle == null) { if (this.vehicle == null) {
this.setRiderSeatPosition(this.baseTranslation); this.setRiderSeatPosition(this.baseTranslation);
this.moveRelative(0, this.baseTranslation.getY(), 0, yaw, pitch, headYaw, false); this.moveRelative(this.baseTranslation.getX(), this.baseTranslation.getY(), this.baseTranslation.getZ(), yaw, pitch, headYaw, false);
} else { } else {
EntityUtils.updateMountOffset(this, this.vehicle, true, true, false); EntityUtils.updateMountOffset(this, this.vehicle, true, true, false);
this.updateBedrockMetadata(); this.updateBedrockMetadata();