aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features/combat
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-11-19 02:20:15 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-11-19 02:20:15 +0100
commit82fefe356fe1c515c7f534125edc9db2e20c851e (patch)
tree0040c7b12faa29fe41765054f8e31b8e4e8cd311 /src/main/java/at/hannibal2/skyhanni/features/combat
parent8ccf6ff20ba0c698e97b270f7c91940d250659d0 (diff)
downloadskyhanni-82fefe356fe1c515c7f534125edc9db2e20c851e.tar.gz
skyhanni-82fefe356fe1c515c7f534125edc9db2e20c851e.tar.bz2
skyhanni-82fefe356fe1c515c7f534125edc9db2e20c851e.zip
Using IslandType.isInIsland more
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/combat')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/combat/ghostcounter/GhostCounter.kt5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/combat/ghostcounter/GhostCounter.kt b/src/main/java/at/hannibal2/skyhanni/features/combat/ghostcounter/GhostCounter.kt
index 171e45f90..56e70437c 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/combat/ghostcounter/GhostCounter.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/combat/ghostcounter/GhostCounter.kt
@@ -39,6 +39,7 @@ import at.hannibal2.skyhanni.utils.LorenzUtils
import at.hannibal2.skyhanni.utils.LorenzUtils.addAsSingletonList
import at.hannibal2.skyhanni.utils.LorenzUtils.chat
import at.hannibal2.skyhanni.utils.LorenzUtils.clickableChat
+import at.hannibal2.skyhanni.utils.LorenzUtils.isInIsland
import at.hannibal2.skyhanni.utils.NEUInternalName.Companion.asInternalName
import at.hannibal2.skyhanni.utils.NumberUtil.addSeparators
import at.hannibal2.skyhanni.utils.NumberUtil.formatNumber
@@ -489,7 +490,5 @@ object GhostCounter {
event.move(2, "ghostCounter", "combat.ghostCounter")
}
- fun isEnabled(): Boolean {
- return LorenzUtils.inSkyBlock && config.enabled && LorenzUtils.skyBlockIsland == IslandType.DWARVEN_MINES
- }
+ fun isEnabled() = config.enabled && IslandType.DWARVEN_MINES.isInIsland()
}