diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-08-03 19:59:40 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-08-03 19:59:40 +0200 |
commit | d28deb42cf69ba3a56e1117e373a0a3514a45e31 (patch) | |
tree | 8f5efb431d42bb9f70b9a2665fb0a88a0bf1a339 /src/main | |
parent | 868141524e82639f6aaf5e577e2b9441925617d0 (diff) | |
download | skyhanni-d28deb42cf69ba3a56e1117e373a0a3514a45e31.tar.gz skyhanni-d28deb42cf69ba3a56e1117e373a0a3514a45e31.tar.bz2 skyhanni-d28deb42cf69ba3a56e1117e373a0a3514a45e31.zip |
Fixed startup crash in HarpKeybinds
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/misc/HarpKeybinds.kt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/HarpKeybinds.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/HarpKeybinds.kt index 08bb4cfee..5ca0e6239 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/misc/HarpKeybinds.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/misc/HarpKeybinds.kt @@ -2,6 +2,7 @@ package at.hannibal2.skyhanni.features.misc import at.hannibal2.skyhanni.SkyHanniMod import at.hannibal2.skyhanni.utils.InventoryUtils.openInventoryName +import at.hannibal2.skyhanni.utils.LorenzUtils import at.hannibal2.skyhanni.utils.SimpleTimeMark import net.minecraft.client.Minecraft import net.minecraft.client.gui.inventory.GuiChest @@ -26,6 +27,7 @@ class HarpKeybinds { @SubscribeEvent fun onGui(event: GuiScreenEvent) { + if (!LorenzUtils.inSkyBlock) return if (!SkyHanniMod.feature.misc.harpKeybinds) return if (!openInventoryName().startsWith("Harp")) return val chest = event.gui as? GuiChest ?: return |