Fixed mobs' arms sticking too far up when sitting in a boat

This commit is contained in:
Sollace 2023-10-05 20:04:55 +01:00
parent b1869c824e
commit 8dad366317
No known key found for this signature in database
GPG key ID: E52FACE7B5C773DB
2 changed files with 7 additions and 0 deletions

View file

@ -36,9 +36,15 @@ public final class MobPosingHelper {
if (islookAngleRight(move)) {
rotateArmHolding(rightArm, 1, model.getSwingAmount(), ticks);
if (model.getAttributes().isSitting) {
rightArm.pitch += 0.6F;
}
PartUtil.shift(rightArm, 0.5F, 1.5F, 3);
} else {
rotateArmHolding(leftArm, -1, model.getSwingAmount(), ticks);
if (model.getAttributes().isSitting) {
leftArm.pitch += 0.6F;
}
PartUtil.shift(leftArm, -0.5F, 1.5F, 3);
}
}

View file

@ -366,6 +366,7 @@ public abstract class AbstractPonyModel<T extends LivingEntity> extends ClientPo
case NECK: return neck;
case TAIL:
case LEGS:
case BACK:
case BODY: return body;
}
}