Fix boat entity mounted height offset in <= 1.20.1

Closes https://github.com/ViaVersion/ViaFabricPlus/issues/537
This commit is contained in:
FlorianMichael 2024-08-21 13:01:20 +02:00
parent f36ed5118e
commit d03590ab97
No known key found for this signature in database
GPG Key ID: C2FB87E71C425126

View File

@ -80,7 +80,8 @@ public class EntityRidingOffsetsPre1_20_2 {
if (passenger instanceof AnimalEntity) xOffset += 0.2F;
}
return new Vec3d(xOffset, yOffset, 0F);
return new Vec3d(xOffset, yOffset, 0F).rotateY(-(float) (Math.PI / 2));
}
} else if (entity instanceof CamelEntity camelEntity) {
if (!camelEntity.hasPassenger(passenger)) return Vec3d.ZERO;