Fix custom crosshair rendering screwing up possible other GUI elements (like boss health) #1286

This commit is contained in:
Bernhard Bonigl committed 2015-01-01 20:37:12 +01:00
1 parent 6c6e94793d
commit 6d7f751a53
1 file changed
+4
@@ -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)