aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorJ10a1n15 <45315647+j10a1n15@users.noreply.github.com>2024-05-02 12:02:09 +0200
committerGitHub <noreply@github.com>2024-05-02 12:02:09 +0200
commit0ce81ffab719984f9f0a86a4e443bbb318953402 (patch)
tree9dd82a5ed102bdff10bea445fb020050bfa86fc2 /src/main/java
parentb6dd5ab3904df14b87d431f93d6226452a7385b7 (diff)
downloadskyhanni-0ce81ffab719984f9f0a86a4e443bbb318953402.tar.gz
skyhanni-0ce81ffab719984f9f0a86a4e443bbb318953402.tar.bz2
skyhanni-0ce81ffab719984f9f0a86a4e443bbb318953402.zip
Fix: Max Player Size in Mineshaft (#1651)
Diffstat (limited to 'src/main/java')
-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.