Fix #1726 - Accessories on other players now render in the proper position

This commit is contained in:
Michael Brenan committed 2016-01-13 22:53:21 -06:00
1 parent d3055c4c4d
commit d0faf3c3c6
2 files changed
+3 -3

No files matched your search

@@ -53,7 +53,7 @@ public interface IBaubleRender {
}
public static void translateToHeadLevel(EntityPlayer player) {
GL11.glTranslated(0, (player != Minecraft.getMinecraft().thePlayer ? 1.62F : 0F) - player.getDefaultEyeHeight() + (player.isSneaking() ? 0.0625 : 0), 0);
GL11.glTranslated(0, (player != Minecraft.getMinecraft().thePlayer ? 1.68F : 0F) - player.getDefaultEyeHeight() + (player.isSneaking() ? 0.0625 : 0), 0);
}
}
@@ -213,7 +213,7 @@ public class ItemBaubleCosmetic extends ItemBauble implements ICosmeticBauble {
break;
case 26:
faceTranslate();
GL11.glTranslatef(-0.1F, -0.5F, 0F);
GL11.glTranslatef(-0.1F, -0.4F, 0F);
GL11.glEnable(GL11.GL_BLEND);
GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
GL11.glColor4f(1F, 1F, 1F, 0.7F);
@@ -222,7 +222,7 @@ public class ItemBaubleCosmetic extends ItemBauble implements ICosmeticBauble {
case 27:
faceTranslate();
scale(0.75F);
GL11.glTranslatef(0.04F, -0.5F, 0F);
GL11.glTranslatef(0.04F, -0.65F, 0F);
renderIcon(27);
break;
case 28: