mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-21 20:52:26 +00:00
Fix custom crosshair rendering screwing up possible other GUI elements (like boss health) #1286
This commit is contained in:
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)
|
||||
|
||||
Reference in new issue
Block a user