mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-25 13:57:59 +01:00
Fixed mobs' arms sticking too far up when sitting in a boat
This commit is contained in:
parent
b1869c824e
commit
8dad366317
2 changed files with 7 additions and 0 deletions
|
@ -36,9 +36,15 @@ public final class MobPosingHelper {
|
||||||
|
|
||||||
if (islookAngleRight(move)) {
|
if (islookAngleRight(move)) {
|
||||||
rotateArmHolding(rightArm, 1, model.getSwingAmount(), ticks);
|
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 {
|
||||||
rotateArmHolding(leftArm, -1, model.getSwingAmount(), ticks);
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue