Parrots render at the correct size when riding a pony's back

This commit is contained in:
Sollace 2024-12-14 00:54:37 +01:00
parent 2e7442b07a
commit e922b397c8
No known key found for this signature in database
GPG key ID: E52FACE7B5C773DB

View file

@ -56,6 +56,8 @@ public class PassengerFeature<
matrices.push();
getContextModel().transform(state, BodyPart.BACK, matrices);
getContextModel().body.rotate(matrices);
float scale = 1 / state.attributes.size.scaleFactor();
matrices.scale(scale, scale, scale);
matrices.translate(
left ? 0.25F : -0.25F,
state.isInSneakingPose ? -1.7F : -1.5F, 0