aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/at')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/data/HypixelData.kt9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/data/HypixelData.kt b/src/main/java/at/hannibal2/skyhanni/data/HypixelData.kt
index 7db5c9a89..fd042f499 100644
--- a/src/main/java/at/hannibal2/skyhanni/data/HypixelData.kt
+++ b/src/main/java/at/hannibal2/skyhanni/data/HypixelData.kt
@@ -15,7 +15,6 @@ import at.hannibal2.skyhanni.test.command.ErrorManager
import at.hannibal2.skyhanni.utils.ChatUtils
import at.hannibal2.skyhanni.utils.LorenzLogger
import at.hannibal2.skyhanni.utils.LorenzUtils
-import at.hannibal2.skyhanni.utils.LorenzUtils.isInIsland
import at.hannibal2.skyhanni.utils.SimpleTimeMark
import at.hannibal2.skyhanni.utils.StringUtils.matchFirst
import at.hannibal2.skyhanni.utils.StringUtils.matchMatcher
@@ -183,8 +182,12 @@ class HypixelData {
ScoreboardData.sidebarLinesFormatted.matchFirst(scoreboardVisitingAmoutPattern) {
return group("maxamount").toInt()
}
- if (IslandType.CRYSTAL_HOLLOWS.isInIsland()) return 24
- return if (serverId?.startsWith("mega") == true) 80 else 26
+
+ return when (skyBlockIsland) {
+ IslandType.MINESHAFT -> 4
+ IslandType.CRYSTAL_HOLLOWS -> 24
+ else -> if (serverId?.startsWith("mega") == true) 80 else 26
+ }
}
// This code is modified from NEU, and depends on NEU (or another mod) sending /locraw.