diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-10-17 13:22:11 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-10-17 13:22:11 +0200 |
commit | 07973160f87535eed91ea15c7a2bb37d75d85922 (patch) | |
tree | e570a5289f13f3d81b62601ad13be7a11da98a12 /src/main/java/at/hannibal2/skyhanni/data/RenderData.kt | |
parent | d144ade0173c4d5cdefae948f1f62d929cb56e55 (diff) | |
download | skyhanni-07973160f87535eed91ea15c7a2bb37d75d85922.tar.gz skyhanni-07973160f87535eed91ea15c7a2bb37d75d85922.tar.bz2 skyhanni-07973160f87535eed91ea15c7a2bb37d75d85922.zip |
Hiding a bunch of garden guis in a bunch of garden inventories.
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/data/RenderData.kt')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/data/RenderData.kt | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/data/RenderData.kt b/src/main/java/at/hannibal2/skyhanni/data/RenderData.kt index 0137c4491..f109ea01b 100644 --- a/src/main/java/at/hannibal2/skyhanni/data/RenderData.kt +++ b/src/main/java/at/hannibal2/skyhanni/data/RenderData.kt @@ -2,9 +2,8 @@ package at.hannibal2.skyhanni.data 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 at.hannibal2.skyhanni.test.SkyHanniDebugsAndTests import net.minecraft.client.Minecraft import net.minecraft.client.gui.inventory.GuiChest import net.minecraft.client.gui.inventory.GuiInventory @@ -20,7 +19,7 @@ class RenderData { fun onRenderOverlay(event: RenderGameOverlayEvent.Pre) { if (event.type != RenderGameOverlayEvent.ElementType.HOTBAR) return if (!SkyHanniDebugsAndTests.globalRender) return - if (GuiEditManager.isInGui() || FFGuideGUI.isInGui() || VisualWordGui.isInGui()) return + if (GuiEditManager.isInGui() || VisualWordGui.isInGui()) return GuiRenderEvent.GuiOverlayRenderEvent().postAndCatch() } @@ -28,7 +27,7 @@ class RenderData { @SubscribeEvent fun onBackgroundDraw(event: GuiScreenEvent.BackgroundDrawnEvent) { if (!SkyHanniDebugsAndTests.globalRender) return - if (GuiEditManager.isInGui() || FFGuideGUI.isInGui() || VisualWordGui.isInGui()) return + if (GuiEditManager.isInGui() || VisualWordGui.isInGui()) return val currentScreen = Minecraft.getMinecraft().currentScreen ?: return if (currentScreen !is GuiInventory && currentScreen !is GuiChest) return |