Fix health bar to work with Forge left_height (#115)

Previous the value was hard-coded, causing problems with mods which render bars
before the health bar (closes #114)
This commit is contained in:
Sam McCreery authored and boni committed 2019-02-09 17:54:41 +01:00
1 parent 69a1c80546
commit 2a0b45038b
1 file changed
+1 -1
@@ -61,7 +61,7 @@ public class ExtraHeartRenderHandler {
EntityPlayer player = (EntityPlayer)this.mc.getRenderViewEntity();
// extra setup stuff from us
left_height = 39;
left_height = GuiIngameForge.left_height;
ScaledResolution resolution = event.getResolution();
width = resolution.getScaledWidth();
height = resolution.getScaledHeight();