mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-24 13:27:59 +01:00
Fix reformed changelings' ears
This commit is contained in:
parent
af99765bf2
commit
cb423186e7
1 changed files with 6 additions and 0 deletions
|
@ -6,6 +6,7 @@ import net.minecraft.client.util.math.MatrixStack;
|
||||||
import net.minecraft.util.math.MathHelper;
|
import net.minecraft.util.math.MathHelper;
|
||||||
|
|
||||||
import com.minelittlepony.api.model.SubModel;
|
import com.minelittlepony.api.model.SubModel;
|
||||||
|
import com.minelittlepony.api.pony.meta.Race;
|
||||||
import com.minelittlepony.api.model.ModelAttributes;
|
import com.minelittlepony.api.model.ModelAttributes;
|
||||||
import com.minelittlepony.mson.api.*;
|
import com.minelittlepony.mson.api.*;
|
||||||
import com.minelittlepony.mson.api.model.PartBuilder;
|
import com.minelittlepony.mson.api.model.PartBuilder;
|
||||||
|
@ -31,6 +32,11 @@ public class PonyEars implements SubModel, MsonModel {
|
||||||
right.resetTransform();
|
right.resetTransform();
|
||||||
left.resetTransform();
|
left.resetTransform();
|
||||||
|
|
||||||
|
if (attributes.metadata.race() == Race.CHANGEDLING
|
||||||
|
|| attributes.metadata.race() == Race.CHANGELING) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
limbSpeed = MathHelper.clamp(limbSpeed, 0, 1);
|
limbSpeed = MathHelper.clamp(limbSpeed, 0, 1);
|
||||||
|
|
||||||
float forwardFold = 0.14F * limbSpeed;
|
float forwardFold = 0.14F * limbSpeed;
|
||||||
|
|
Loading…
Reference in a new issue