Move normal transforms into its own method

This commit is contained in:
Sollace 2018-06-21 23:53:32 +02:00
parent aed1dbd8d3
commit e657865305

View file

@ -778,17 +778,21 @@ public abstract class AbstractPonyModel extends ModelPlayer implements IModel {
} else if (metadata.getSize() == PonySize.TALL) { } else if (metadata.getSize() == PonySize.TALL) {
transformTall(part); transformTall(part);
} else { } else {
if (isSleeping) translate(0, -0.61F, 0.25F); transformNormal(part);
switch (part) {
case NECK:
if (isCrouching()) translate(-0.03F, 0.03F, 0.1F);
default:
}
} }
} }
private void transformNormal(BodyPart part) {
if (isSleeping) translate(0, -0.61F, 0.25F);
switch (part) {
case NECK:
if (isCrouching()) translate(-0.03F, 0.03F, 0.1F);
default:
}
}
private void transformTall(BodyPart part) { private void transformTall(BodyPart part) {
if (isSleeping) translate(0, -0.5F, 0.25F); if (isSleeping) translate(0, -0.5F, 0.25F);