aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features
diff options
context:
space:
mode:
authorraaaaaven <168305416+raaaaaven@users.noreply.github.com>2024-04-29 12:34:25 +0100
committerGitHub <noreply@github.com>2024-04-29 13:34:25 +0200
commitfb85e2a9912575712aa80819005ab5ae444c63f3 (patch)
tree07a76fb6aa524b20c683b5519af3a88a98b52770 /src/main/java/at/hannibal2/skyhanni/features
parent5072672495f079d4748872cb258ac5d417ba223c (diff)
downloadskyhanni-fb85e2a9912575712aa80819005ab5ae444c63f3.tar.gz
skyhanni-fb85e2a9912575712aa80819005ab5ae444c63f3.tar.bz2
skyhanni-fb85e2a9912575712aa80819005ab5ae444c63f3.zip
Improvement: Hoppity Menu Shortcut appearing in islands that it's not supposed to be used in. (#1585)
Co-authored-by: raven <raveeeennnn@hotmail.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/event/chocolatefactory/ChocolateFactoryShortcut.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/event/chocolatefactory/ChocolateFactoryShortcut.kt b/src/main/java/at/hannibal2/skyhanni/features/event/chocolatefactory/ChocolateFactoryShortcut.kt
index b28acd995..edb6af40e 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/event/chocolatefactory/ChocolateFactoryShortcut.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/event/chocolatefactory/ChocolateFactoryShortcut.kt
@@ -1,9 +1,9 @@
package at.hannibal2.skyhanni.features.event.chocolatefactory
+import at.hannibal2.skyhanni.data.IslandType
import at.hannibal2.skyhanni.events.GuiContainerEvent
import at.hannibal2.skyhanni.events.InventoryCloseEvent
import at.hannibal2.skyhanni.events.InventoryFullyOpenedEvent
-import at.hannibal2.skyhanni.features.rift.RiftAPI
import at.hannibal2.skyhanni.utils.HypixelCommands
import at.hannibal2.skyhanni.utils.LorenzUtils
import at.hannibal2.skyhanni.utils.NEUInternalName.Companion.asInternalName
@@ -36,8 +36,8 @@ class ChocolateFactoryShortcut {
@SubscribeEvent
fun onInventoryOpen(event: InventoryFullyOpenedEvent) {
- if (RiftAPI.inRift()) return
if (!LorenzUtils.inSkyBlock) return
+ if (LorenzUtils.inAnyIsland(IslandType.THE_RIFT, IslandType.KUUDRA_ARENA, IslandType.CATACOMBS, IslandType.MINESHAFT)) return
showItem = config.hoppityMenuShortcut && event.inventoryName == "SkyBlock Menu"
}