Fix reformed changelings' ears

This commit is contained in:
Sollace 2023-12-07 21:48:10 +00:00
parent af99765bf2
commit cb423186e7
No known key found for this signature in database
GPG key ID: E52FACE7B5C773DB

View file

@ -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;