From 8dad366317249c3e3b500b2d02a4bcb89f087060 Mon Sep 17 00:00:00 2001 From: Sollace Date: Thu, 5 Oct 2023 20:04:55 +0100 Subject: [PATCH] Fixed mobs' arms sticking too far up when sitting in a boat --- .../java/com/minelittlepony/api/model/MobPosingHelper.java | 6 ++++++ .../com/minelittlepony/client/model/AbstractPonyModel.java | 1 + 2 files changed, 7 insertions(+) diff --git a/src/main/java/com/minelittlepony/api/model/MobPosingHelper.java b/src/main/java/com/minelittlepony/api/model/MobPosingHelper.java index 791d0217..49e8279b 100644 --- a/src/main/java/com/minelittlepony/api/model/MobPosingHelper.java +++ b/src/main/java/com/minelittlepony/api/model/MobPosingHelper.java @@ -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); } } diff --git a/src/main/java/com/minelittlepony/client/model/AbstractPonyModel.java b/src/main/java/com/minelittlepony/client/model/AbstractPonyModel.java index b9d2afc9..00dabc50 100644 --- a/src/main/java/com/minelittlepony/client/model/AbstractPonyModel.java +++ b/src/main/java/com/minelittlepony/client/model/AbstractPonyModel.java @@ -366,6 +366,7 @@ public abstract class AbstractPonyModel extends ClientPo case NECK: return neck; case TAIL: case LEGS: + case BACK: case BODY: return body; } }