aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/data/RenderData.kt
diff options
context:
space:
mode:
authorCalMWolfs <94038482+CalMWolfs@users.noreply.github.com>2023-10-14 21:45:26 +1100
committerGitHub <noreply@github.com>2023-10-14 12:45:26 +0200
commit7a634386ec4dd842e946bd3ba331c0d565faf173 (patch)
tree558cc86b80b6e1af0d2a8ba857324b1d72ed774b /src/main/java/at/hannibal2/skyhanni/data/RenderData.kt
parent16ef943b3c2ce8db2331332261143a12bdba61cf (diff)
downloadskyhanni-7a634386ec4dd842e946bd3ba331c0d565faf173.tar.gz
skyhanni-7a634386ec4dd842e946bd3ba331c0d565faf173.tar.bz2
skyhanni-7a634386ec4dd842e946bd3ba331c0d565faf173.zip
Feature: Modify Visual Words (#492)
Added /shwords. #492
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/data/RenderData.kt')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/data/RenderData.kt5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/data/RenderData.kt b/src/main/java/at/hannibal2/skyhanni/data/RenderData.kt
index 9688add2c..0137c4491 100644
--- a/src/main/java/at/hannibal2/skyhanni/data/RenderData.kt
+++ b/src/main/java/at/hannibal2/skyhanni/data/RenderData.kt
@@ -4,6 +4,7 @@ import at.hannibal2.skyhanni.events.GuiRenderEvent
import at.hannibal2.skyhanni.events.LorenzRenderWorldEvent
import at.hannibal2.skyhanni.features.garden.fortuneguide.FFGuideGUI
import at.hannibal2.skyhanni.test.SkyHanniDebugsAndTests
+import at.hannibal2.skyhanni.features.misc.visualwords.VisualWordGui
import net.minecraft.client.Minecraft
import net.minecraft.client.gui.inventory.GuiChest
import net.minecraft.client.gui.inventory.GuiInventory
@@ -19,7 +20,7 @@ class RenderData {
fun onRenderOverlay(event: RenderGameOverlayEvent.Pre) {
if (event.type != RenderGameOverlayEvent.ElementType.HOTBAR) return
if (!SkyHanniDebugsAndTests.globalRender) return
- if (GuiEditManager.isInGui() || FFGuideGUI.isInGui()) return
+ if (GuiEditManager.isInGui() || FFGuideGUI.isInGui() || VisualWordGui.isInGui()) return
GuiRenderEvent.GuiOverlayRenderEvent().postAndCatch()
}
@@ -27,7 +28,7 @@ class RenderData {
@SubscribeEvent
fun onBackgroundDraw(event: GuiScreenEvent.BackgroundDrawnEvent) {
if (!SkyHanniDebugsAndTests.globalRender) return
- if (GuiEditManager.isInGui() || FFGuideGUI.isInGui()) return
+ if (GuiEditManager.isInGui() || FFGuideGUI.isInGui() || VisualWordGui.isInGui()) return
val currentScreen = Minecraft.getMinecraft().currentScreen ?: return
if (currentScreen !is GuiInventory && currentScreen !is GuiChest) return