From 0ce81ffab719984f9f0a86a4e443bbb318953402 Mon Sep 17 00:00:00 2001 From: J10a1n15 <45315647+j10a1n15@users.noreply.github.com> Date: Thu, 2 May 2024 12:02:09 +0200 Subject: Fix: Max Player Size in Mineshaft (#1651) --- src/main/java/at/hannibal2/skyhanni/data/HypixelData.kt | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/main/java') 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. -- cgit