aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/lorenz/mod/HideNotClickableItems.kt
diff options
context:
space:
mode:
authorLorenz <ESs95s3P5z8Pheb>2022-07-09 02:41:10 +0200
committerLorenz <ESs95s3P5z8Pheb>2022-07-09 02:41:10 +0200
commit29f8bad3e41c8a0215a8b4f3e971a24a2a1f9758 (patch)
tree2e3cac801aaa3c6adeb9ceb0ce30d898d2eb3881 /src/main/java/at/lorenz/mod/HideNotClickableItems.kt
parent70ed542804a403790932abdf5d601d3c0c26cfe8 (diff)
downloadskyhanni-29f8bad3e41c8a0215a8b4f3e971a24a2a1f9758.tar.gz
skyhanni-29f8bad3e41c8a0215a8b4f3e971a24a2a1f9758.tar.bz2
skyhanni-29f8bad3e41c8a0215a8b4f3e971a24a2a1f9758.zip
adding support for isOnHypixel, inSkyblock and inDungeons
Diffstat (limited to 'src/main/java/at/lorenz/mod/HideNotClickableItems.kt')
-rw-r--r--src/main/java/at/lorenz/mod/HideNotClickableItems.kt1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/at/lorenz/mod/HideNotClickableItems.kt b/src/main/java/at/lorenz/mod/HideNotClickableItems.kt
index 3a882b11f..83c80b426 100644
--- a/src/main/java/at/lorenz/mod/HideNotClickableItems.kt
+++ b/src/main/java/at/lorenz/mod/HideNotClickableItems.kt
@@ -27,6 +27,7 @@ class HideNotClickableItems {
@SubscribeEvent
fun onBackgroundDrawn(event: GuiContainerEvent.BackgroundDrawnEvent) {
+ if (!LorenzUtils.inSkyblock) return
if (isDisabled()) return
if (event.gui !is GuiChest) return
val guiChest = event.gui