diff options
author | hannibal2 <24389977+hannibal002@users.noreply.github.com> | 2024-04-04 20:32:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-04 20:32:01 +0200 |
commit | 52afdbf62ef5c35403132696918b9cfcc8faffdb (patch) | |
tree | 635ceff6fdd18b0f201be04c5e6d1661275adcb0 /src/main/java/at/hannibal2/skyhanni/features | |
parent | b9c0aaa585a913d5c139c8e5aa7437925b1acfa2 (diff) | |
download | skyhanni-52afdbf62ef5c35403132696918b9cfcc8faffdb.tar.gz skyhanni-52afdbf62ef5c35403132696918b9cfcc8faffdb.tar.bz2 skyhanni-52afdbf62ef5c35403132696918b9cfcc8faffdb.zip |
Backend: error manager only for beta users (#1299)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardElements.kt | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardElements.kt b/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardElements.kt index 744b4fa45..d3e3b6c1c 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardElements.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardElements.kt @@ -807,16 +807,18 @@ private fun getFooterDisplayPair() = listOf( private fun getExtraDisplayPair(): List<ScoreboardElementType> { if (unknownLines.isEmpty()) return listOf("<hidden>" to HorizontalAlignment.LEFT) - if (amountOfUnknownLines != unknownLines.size && devConfig.unknownLinesWarning) { + val size = unknownLines.size + if (amountOfUnknownLines != size && devConfig.unknownLinesWarning) { + val message = "CustomScoreboard detected ${pluralize(unknownLines.size, "unknown line", withNumber = true)}" ErrorManager.logErrorWithData( - CustomScoreboardUtils.UndetectedScoreboardLines("CustomScoreboard detected ${pluralize(unknownLines.size, "unknown line", withNumber = true)}"), - "CustomScoreboard detected ${pluralize(unknownLines.size, "unknown line", withNumber = true)}", + CustomScoreboardUtils.UndetectedScoreboardLines(message), + message, "Unknown Lines" to unknownLines, "Island" to HypixelData.skyBlockIsland, "Area" to HypixelData.skyBlockArea, - noStackTrace = true + noStackTrace = true, ) - amountOfUnknownLines = unknownLines.size + amountOfUnknownLines = size } return listOf("§cUndetected Lines:" to HorizontalAlignment.LEFT) + unknownLines.map { it to HorizontalAlignment.LEFT } |