From cb423186e7255dc4c1a66f6e16f3b6335e0282d8 Mon Sep 17 00:00:00 2001 From: Sollace Date: Thu, 7 Dec 2023 21:48:10 +0000 Subject: [PATCH] Fix reformed changelings' ears --- .../java/com/minelittlepony/client/model/part/PonyEars.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/com/minelittlepony/client/model/part/PonyEars.java b/src/main/java/com/minelittlepony/client/model/part/PonyEars.java index 48a82cc1..6949e80f 100644 --- a/src/main/java/com/minelittlepony/client/model/part/PonyEars.java +++ b/src/main/java/com/minelittlepony/client/model/part/PonyEars.java @@ -6,6 +6,7 @@ import net.minecraft.client.util.math.MatrixStack; import net.minecraft.util.math.MathHelper; import com.minelittlepony.api.model.SubModel; +import com.minelittlepony.api.pony.meta.Race; import com.minelittlepony.api.model.ModelAttributes; import com.minelittlepony.mson.api.*; import com.minelittlepony.mson.api.model.PartBuilder; @@ -31,6 +32,11 @@ public class PonyEars implements SubModel, MsonModel { right.resetTransform(); left.resetTransform(); + if (attributes.metadata.race() == Race.CHANGEDLING + || attributes.metadata.race() == Race.CHANGELING) { + return; + } + limbSpeed = MathHelper.clamp(limbSpeed, 0, 1); float forwardFold = 0.14F * limbSpeed;