From 6d7f751a53d37084c206d99b393842a3eea0b8f3 Mon Sep 17 00:00:00 2001 From: Bernhard Bonigl Date: Thu, 1 Jan 2015 20:37:12 +0100 Subject: [PATCH] Fix custom crosshair rendering screwing up possible other GUI elements (like boss health) #1286 --- .../java/tconstruct/weaponry/client/CrosshairHandler.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/tconstruct/weaponry/client/CrosshairHandler.java b/src/main/java/tconstruct/weaponry/client/CrosshairHandler.java index df1d26ce..46062a51 100644 --- a/src/main/java/tconstruct/weaponry/client/CrosshairHandler.java +++ b/src/main/java/tconstruct/weaponry/client/CrosshairHandler.java @@ -1,5 +1,6 @@ package tconstruct.weaponry.client; +import net.minecraft.client.gui.Gui; import tconstruct.util.Reference; import tconstruct.library.weaponry.IWindup; import cpw.mods.fml.common.eventhandler.SubscribeEvent; @@ -72,6 +73,9 @@ public class CrosshairHandler { GL11.glDisable(GL11.GL_BLEND); event.setCanceled(true); + + // restore gui texture for following draw calls + mc.getTextureManager().bindTexture(Gui.icons); } private void drawCrosshairPart(float width, float height, int part)