From 7d62067aa88d5f518b1b85d241594091fd6b5c7d Mon Sep 17 00:00:00 2001 From: eris Date: Sun, 17 Jan 2021 06:53:04 -0500 Subject: [PATCH 1/2] fix accessory bag overlay obscuring tooltips --- .../io/github/moulberry/notenoughupdates/NEUEventListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/io/github/moulberry/notenoughupdates/NEUEventListener.java b/src/main/java/io/github/moulberry/notenoughupdates/NEUEventListener.java index 1111a580fe..0d0ad47f1e 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/NEUEventListener.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/NEUEventListener.java @@ -693,7 +693,7 @@ private static boolean shouldRenderOverlay(Gui gui) { * @param event */ @SubscribeEvent - public void onGuiScreenDrawPost(GuiScreenEvent.DrawScreenEvent.Post event) { + public void onGuiScreenDrawPost(GuiScreenEvent.DrawScreenEvent.BackgroundDrawnEvent event) { if(!(TradeWindow.tradeWindowActive() || event.gui instanceof CustomAHGui || neu.manager.auctionManager.customAH.isRenderOverAuctionView())) { if(shouldRenderOverlay(event.gui) && neu.isOnSkyblock()) { From 46b7aa40b7a6a3bb5e1ca1539bb84da0d0eeadaf Mon Sep 17 00:00:00 2001 From: eris Date: Sun, 17 Jan 2021 09:32:05 -0500 Subject: [PATCH 2/2] actually fix it and don't break other things :^) --- .../github/moulberry/notenoughupdates/NEUEventListener.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/io/github/moulberry/notenoughupdates/NEUEventListener.java b/src/main/java/io/github/moulberry/notenoughupdates/NEUEventListener.java index 0d0ad47f1e..ed36b168ec 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/NEUEventListener.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/NEUEventListener.java @@ -693,7 +693,7 @@ private static boolean shouldRenderOverlay(Gui gui) { * @param event */ @SubscribeEvent - public void onGuiScreenDrawPost(GuiScreenEvent.DrawScreenEvent.BackgroundDrawnEvent event) { + public void onGuiScreenDrawPost(GuiScreenEvent.DrawScreenEvent.Post event) { if(!(TradeWindow.tradeWindowActive() || event.gui instanceof CustomAHGui || neu.manager.auctionManager.customAH.isRenderOverAuctionView())) { if(shouldRenderOverlay(event.gui) && neu.isOnSkyblock()) { @@ -707,7 +707,10 @@ public void onGuiScreenDrawPost(GuiScreenEvent.DrawScreenEvent.BackgroundDrawnEv GlStateManager.popMatrix(); } } + } + @SubscribeEvent + public void onScreenBackgroundRender(GuiScreenEvent.DrawScreenEvent.BackgroundDrawnEvent event) { if(shouldRenderOverlay(event.gui) && neu.isOnSkyblock()) { renderDungeonChestOverlay(event.gui); if(neu.config.accessoryBag.enableOverlay) {