mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-25 05:48:00 +01:00
Fixed reformed changelings' ears
This commit is contained in:
parent
cc6cc074e8
commit
8a801e7c41
1 changed files with 2 additions and 8 deletions
|
@ -6,7 +6,6 @@ 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;
|
||||
|
@ -32,18 +31,13 @@ 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;
|
||||
float sidewaysFlop = 0.11F * limbSpeed;
|
||||
|
||||
right.pitch = forwardFold;
|
||||
left.pitch = forwardFold;
|
||||
right.pitch += forwardFold;
|
||||
left.pitch += forwardFold;
|
||||
|
||||
right.roll -= sidewaysFlop;
|
||||
left.roll += sidewaysFlop;
|
||||
|
|
Loading…
Reference in a new issue