From d3a5c809818887ea2edf072d758dc8ba18172379 Mon Sep 17 00:00:00 2001 From: Sollace Date: Tue, 26 Sep 2023 17:14:09 +0100 Subject: [PATCH] Fixed trident animation. Closes #250 --- .../com/minelittlepony/client/model/AbstractPonyModel.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/minelittlepony/client/model/AbstractPonyModel.java b/src/main/java/com/minelittlepony/client/model/AbstractPonyModel.java index b3dc4957..ed55aca6 100644 --- a/src/main/java/com/minelittlepony/client/model/AbstractPonyModel.java +++ b/src/main/java/com/minelittlepony/client/model/AbstractPonyModel.java @@ -437,7 +437,8 @@ public abstract class AbstractPonyModel extends ClientPo break; case THROW_SPEAR: arm.pitch = MathUtil.Angles._90_DEG * 2; - arm.roll += 0.3F * -limbSpeed * sigma; + arm.roll += (0.3F * -limbSpeed + 0.6F) * sigma; + arm.pivotY ++; break; case SPYGLASS: float addedPitch = sneaking ? -0.2617994F : 0; @@ -604,10 +605,10 @@ public abstract class AbstractPonyModel extends ClientPo matrices.translate(left / 10, -0.2F, -0.5F); } - matrices.translate(left * 0.1F, 0.45F, 0); + matrices.translate(-left * 0.1F, 0.45F, 0); if (getAttributes().heldStack.getUseAction() == UseAction.BLOCK && getAttributes().itemUseTime == 0) { - matrices.translate(left * -0.1F, -0.25F, 0); + matrices.translate(left * 0.02F, -0.25F, 0); } }