From 82a89eb1baccaa4e0043ea0da0a4446fe662d4ba Mon Sep 17 00:00:00 2001 From: Sollace Date: Fri, 26 Apr 2024 21:01:08 +0100 Subject: [PATCH] Apply changeling pony ears fix from 1.20.2+ --- .../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 22fee963..383eb711 100644 --- a/src/main/java/com/minelittlepony/client/model/part/PonyEars.java +++ b/src/main/java/com/minelittlepony/client/model/part/PonyEars.java @@ -7,6 +7,7 @@ import net.minecraft.util.math.MathHelper; import com.minelittlepony.api.model.IPart; import com.minelittlepony.api.model.ModelAttributes; +import com.minelittlepony.api.pony.meta.Race; import com.minelittlepony.mson.api.*; import com.minelittlepony.mson.api.model.PartBuilder; @@ -31,6 +32,11 @@ public class PonyEars implements IPart, MsonModel { right.resetTransform(); left.resetTransform(); + if (attributes.metadata.getRace() == Race.CHANGEDLING + || attributes.metadata.getRace() == Race.CHANGELING) { + return; + } + limbSpeed = MathHelper.clamp(limbSpeed, 0, 1); float forwardFold = 0.14F * limbSpeed;