fixed player position when using a FNAW skin and sleeping

This commit is contained in:
LAX1DUDE 2022-06-11 17:39:27 -07:00
parent 95003627a4
commit 9fc207642b
2 changed files with 11 additions and 1 deletions

View File

@ -4,7 +4,7 @@ public class ConfigConstants {
public static boolean profanity = false; public static boolean profanity = false;
public static final String version = "22w23a"; public static final String version = "22w23b";
public static final String mainMenuString = "eaglercraft " + version; public static final String mainMenuString = "eaglercraft " + version;
public static final String forkMe = "https://github.com/LAX1DUDE/eaglercraft"; public static final String forkMe = "https://github.com/LAX1DUDE/eaglercraft";

View File

@ -125,6 +125,16 @@ public class RenderPlayer extends RenderLiving {
EaglerAdapter.glScalef(HighPolySkin.highPolyScale, HighPolySkin.highPolyScale, HighPolySkin.highPolyScale); EaglerAdapter.glScalef(HighPolySkin.highPolyScale, HighPolySkin.highPolyScale, HighPolySkin.highPolyScale);
msh.texture.bindTexture(); msh.texture.bindTexture();
if(par1EntityPlayer.isPlayerSleeping()) {
if(msh == HighPolySkin.LAXATIVE_DUDE || msh == HighPolySkin.WEIRD_CLIMBER_DUDE) {
EaglerAdapter.glTranslatef(0.0f, -3.7f, 0.0f);
}else if(msh == HighPolySkin.BABY_WINSTON) {
EaglerAdapter.glTranslatef(0.0f, -2.4f, 0.0f);
}else {
EaglerAdapter.glTranslatef(0.0f, -3.0f, 0.0f);
}
}
float var15 = par1EntityPlayer.prevLimbYaw + (par1EntityPlayer.limbYaw - par1EntityPlayer.prevLimbYaw) * par9; float var15 = par1EntityPlayer.prevLimbYaw + (par1EntityPlayer.limbYaw - par1EntityPlayer.prevLimbYaw) * par9;
float var16 = par1EntityPlayer.limbSwing - par1EntityPlayer.limbYaw * (1.0F - par9); float var16 = par1EntityPlayer.limbSwing - par1EntityPlayer.limbYaw * (1.0F - par9);