mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-23 12:58:01 +01:00
Move normal transforms into its own method
This commit is contained in:
parent
aed1dbd8d3
commit
e657865305
1 changed files with 11 additions and 7 deletions
|
@ -778,6 +778,12 @@ 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 {
|
||||||
|
transformNormal(part);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private void transformNormal(BodyPart part) {
|
||||||
if (isSleeping) translate(0, -0.61F, 0.25F);
|
if (isSleeping) translate(0, -0.61F, 0.25F);
|
||||||
|
|
||||||
switch (part) {
|
switch (part) {
|
||||||
|
@ -787,8 +793,6 @@ public abstract class AbstractPonyModel extends ModelPlayer implements IModel {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue