From 6582eefb98545c6c05430e7205e2c6e6c012169d Mon Sep 17 00:00:00 2001 From: CalMWolfs <94038482+CalMWolfs@users.noreply.github.com> Date: Wed, 27 Mar 2024 03:01:45 +1100 Subject: Fix: More server id errors (#1271) --- src/main/java/at/hannibal2/skyhanni/data/HypixelData.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (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 3e8d0b756..9ab6993d2 100644 --- a/src/main/java/at/hannibal2/skyhanni/data/HypixelData.kt +++ b/src/main/java/at/hannibal2/skyhanni/data/HypixelData.kt @@ -44,7 +44,7 @@ class HypixelData { private val patternGroup = RepoPattern.group("data.hypixeldata") private val serverIdScoreboardPattern by patternGroup.pattern( "serverid.scoreboard", - "§7\\d+/\\d+/\\d+ §8(?[mM])(?\\S+)" + "§7\\d+/\\d+/\\d+ §8(?[mM])(?\\S+).*" ) private val serverIdTablistPattern by patternGroup.pattern( "serverid.tablist", @@ -120,6 +120,7 @@ class HypixelData { fun checkCurrentServerId() { if (!LorenzUtils.inSkyBlock) return if (LorenzUtils.lastWorldSwitch.passedSince() < 1.seconds) return + if (!TabListData.fullyLoaded) return ScoreboardData.sidebarLinesFormatted.forEach { serverIdScoreboardPattern.matchMatcher(it) { -- cgit