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

# Conflicts:
#	src/main/java/com/minelittlepony/client/model/IMobModel.java
This commit is contained in:
Sollace 2023-10-05 20:04:55 +01:00
parent 9334836aa7
commit 101b2bd20c
No known key found for this signature in database
GPG key ID: E52FACE7B5C773DB
2 changed files with 7 additions and 0 deletions

View file

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

View file

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