diff options
author | hannibal2 <24389977+hannibal002@users.noreply.github.com> | 2024-03-14 12:18:11 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-14 12:18:11 +0100 |
commit | 020f9b5758870d806754051f1e87ec276b0a8521 (patch) | |
tree | 49c135989d8952c62d6301cdf156d1328be0910a /src/main/java/at/hannibal2/skyhanni | |
parent | bc30d882209649bac956ed46641b76b8fc1522d9 (diff) | |
download | skyhanni-020f9b5758870d806754051f1e87ec276b0a8521.tar.gz skyhanni-020f9b5758870d806754051f1e87ec276b0a8521.tar.bz2 skyhanni-020f9b5758870d806754051f1e87ec276b0a8521.zip |
Fix: advanced player list error with pet in widget and "hide spacing" (#1166)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/misc/compacttablist/AdvancedPlayerList.kt | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/compacttablist/AdvancedPlayerList.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/compacttablist/AdvancedPlayerList.kt index a68c9d728..4d96b9bc0 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/misc/compacttablist/AdvancedPlayerList.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/misc/compacttablist/AdvancedPlayerList.kt @@ -12,7 +12,7 @@ import at.hannibal2.skyhanni.events.RepositoryReloadEvent import at.hannibal2.skyhanni.features.bingo.BingoAPI import at.hannibal2.skyhanni.features.misc.MarkedPlayerManager import at.hannibal2.skyhanni.test.SkyHanniDebugsAndTests -import at.hannibal2.skyhanni.utils.ChatUtils +import at.hannibal2.skyhanni.test.command.ErrorManager import at.hannibal2.skyhanni.utils.ConfigUtils import at.hannibal2.skyhanni.utils.KeyboardManager.isKeyHeld import at.hannibal2.skyhanni.utils.LorenzUtils @@ -56,6 +56,7 @@ object AdvancedPlayerList { i++ if (i == 1) continue if (line.isEmpty() || line.contains("Server Info")) break + if (line == " §r§3§lInfo") break if (line.contains("§r§a§lPlayers")) { extraTitles++ continue @@ -103,9 +104,11 @@ object AdvancedPlayerList { playerData.nameSuffix = "" } } catch (e: NumberFormatException) { - val message = "Special user (youtube or admin?): '$line'" - ChatUtils.debug(message) - println(message) + ErrorManager.logErrorWithData(e, "Advanced Player List failed to parse user name", + "line" to line, + "i" to i, + "original" to original, + ) } } } |