From 1c0fa82a4313ef49f3a5038bf79c729bfe701a2a Mon Sep 17 00:00:00 2001 From: Fabboz Date: Sun, 6 Oct 2024 15:38:00 +0200 Subject: [PATCH] LP Hud fix --- .../client/renderer/RenderHelper.java | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/main/java/WayofTime/alchemicalWizardry/client/renderer/RenderHelper.java b/src/main/java/WayofTime/alchemicalWizardry/client/renderer/RenderHelper.java index ab36d637a..072fe8267 100644 --- a/src/main/java/WayofTime/alchemicalWizardry/client/renderer/RenderHelper.java +++ b/src/main/java/WayofTime/alchemicalWizardry/client/renderer/RenderHelper.java @@ -114,18 +114,20 @@ private static void renderLPHUD(Minecraft mc, int lpAmount, int maxAmount) { ResourceLocation test2 = new ResourceLocation("alchemicalwizardry", "textures/gui/container1.png"); GL11.glColor4f(1, 0, 0, 1.0F); - mc.getTextureManager().bindTexture(test2); + GL11.glEnable(3042); + mc.renderEngine.bindTexture(test2); GL11.glScalef(1f / 8f, 1f / 8f, 1f / 8f); - + GL11.glPushMatrix(); drawTexturedModalRect(x, y + amount, 0, amount, 256, 256 - amount); - + GL11.glPopMatrix(); ResourceLocation test = new ResourceLocation("alchemicalwizardry", "textures/gui/lpVial.png"); GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F); - mc.getTextureManager().bindTexture(test); - + mc.renderEngine.bindTexture(test); + GL11.glPushMatrix(); drawTexturedModalRect(x, y, 0, 0, 256, 256); - + GL11.glPopMatrix(); + GL11.glDisable(3042); GL11.glPopMatrix(); }