Fix #10 sleeping ponies.

I swear I didn't creep on anypony to debug this.
This commit is contained in:
Matthew Messinger 2016-07-09 23:57:05 -04:00
parent 8d790d8e59
commit 453b5e2156
2 changed files with 5 additions and 4 deletions

View file

@ -72,6 +72,7 @@ public abstract class MixinRenderPlayer extends RenderLivingBase<AbstractClientP
this.playerModel.getModel().isSneak = player.isSneaking();
this.playerModel.getModel().isFlying = thePony.isPegasusFlying(player);
this.playerModel.getModel().isSleeping = player.isPlayerSleeping();
if (MineLittlePony.getConfig().showscale) {
if (this.playerModel.getModel().metadata.getRace() != null) {

View file

@ -224,7 +224,7 @@ public abstract class AbstractPonyModel extends ModelPlayer {
}
if (this.isSleeping) {
translate(0.0F, -1.0F, 0.25F);
translate(0.0F, -1.2F, 0.25F);
}
if (this.isRiding) {
translate(0, -.1, 0);
@ -261,7 +261,7 @@ public abstract class AbstractPonyModel extends ModelPlayer {
} else if (this.metadata.getSize() == PonySize.LARGE) {
if (this.isSleeping) {
translate(0.0F, -0.47F, 0.2F);
translate(0.0F, -0.7F, 0.2F);
}
switch (part) {
@ -298,7 +298,7 @@ public abstract class AbstractPonyModel extends ModelPlayer {
}
} else if (this.metadata.getSize() == PonySize.TALL) {
if (this.isSleeping) {
translate(0.0F, -0.43F, 0.25F);
translate(0.0F, -0.65F, 0.25F);
}
switch (part) {
@ -330,7 +330,7 @@ public abstract class AbstractPonyModel extends ModelPlayer {
}
} else {
if (this.isSleeping) {
translate(0.0F, -0.535F, 0.25F);
translate(0.0F, -0.75F, 0.25F);
}
}
if (part == BodyPart.HEAD) {