aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/data/RenderGuiData.kt
diff options
context:
space:
mode:
authorCalMWolfs <94038482+CalMWolfs@users.noreply.github.com>2023-05-29 22:20:27 +1000
committerGitHub <noreply@github.com>2023-05-29 14:20:27 +0200
commit85f6fa03d235e2b3ca09b9ae2b3b34dd4bf4fcfb (patch)
treeccb6037b2a967449b61ffe7e9425273f3943f036 /src/main/java/at/hannibal2/skyhanni/data/RenderGuiData.kt
parent1e851e0ff4293633d2977e1a3d125fdc01193ab5 (diff)
downloadskyhanni-85f6fa03d235e2b3ca09b9ae2b3b34dd4bf4fcfb.tar.gz
skyhanni-85f6fa03d235e2b3ca09b9ae2b3b34dd4bf4fcfb.tar.bz2
skyhanni-85f6fa03d235e2b3ca09b9ae2b3b34dd4bf4fcfb.zip
Fortune guide - Mostly done (#160)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/data/RenderGuiData.kt')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/data/RenderGuiData.kt5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/data/RenderGuiData.kt b/src/main/java/at/hannibal2/skyhanni/data/RenderGuiData.kt
index 3f0562f0d..53815366e 100644
--- a/src/main/java/at/hannibal2/skyhanni/data/RenderGuiData.kt
+++ b/src/main/java/at/hannibal2/skyhanni/data/RenderGuiData.kt
@@ -1,6 +1,7 @@
package at.hannibal2.skyhanni.data
import at.hannibal2.skyhanni.events.GuiRenderEvent
+import at.hannibal2.skyhanni.features.garden.fortuneguide.FFGuideGUI
import net.minecraft.client.Minecraft
import net.minecraft.client.gui.inventory.GuiChest
import net.minecraft.client.gui.inventory.GuiInventory
@@ -15,7 +16,7 @@ class RenderGuiData {
fun onRenderOverlay(event: RenderGameOverlayEvent.Pre) {
// if (!ProfileStorage.loaded) return
if (event.type != RenderGameOverlayEvent.ElementType.HOTBAR) return
- if (GuiEditManager.isInGui()) return
+ if (GuiEditManager.isInGui() || FFGuideGUI.isInGui()) return
GuiRenderEvent.GameOverlayRenderEvent().postAndCatch()
}
@@ -23,7 +24,7 @@ class RenderGuiData {
@SubscribeEvent
fun onBackgroundDraw(event: GuiScreenEvent.BackgroundDrawnEvent) {
// if (!ProfileStorage.loaded) return
- if (GuiEditManager.isInGui()) return
+ if (GuiEditManager.isInGui() || FFGuideGUI.isInGui()) return
val currentScreen = Minecraft.getMinecraft().currentScreen ?: return
if (currentScreen !is GuiInventory && currentScreen !is GuiChest) return