aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2
diff options
context:
space:
mode:
authorJ10a1n15 <45315647+j10a1n15@users.noreply.github.com>2024-03-28 21:38:41 +0100
committerGitHub <noreply@github.com>2024-03-28 21:38:41 +0100
commite4ae028ef44cd8cbff3c4dac609699bae9229c39 (patch)
tree315d83788a91500b462ccd774b1851ac3b3342b1 /src/main/java/at/hannibal2
parent284290211a638f678d345ca941777c4b13d6459a (diff)
downloadskyhanni-e4ae028ef44cd8cbff3c4dac609699bae9229c39.tar.gz
skyhanni-e4ae028ef44cd8cbff3c4dac609699bae9229c39.tar.bz2
skyhanni-e4ae028ef44cd8cbff3c4dac609699bae9229c39.zip
Fix: Fixed cold line in Custom Scoreboard (#1304)
Diffstat (limited to 'src/main/java/at/hannibal2')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardElements.kt6
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardPattern.kt2
2 files changed, 4 insertions, 4 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 2800df6aa..bf5acd3f7 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
@@ -98,7 +98,7 @@ enum class ScoreboardElement(
COLD(
::getColdDisplayPair,
::getColdShowWhen,
- "Cold: §b❄ 0"
+ "Cold: §b0❄"
),
NORTH_STARS(
::getNorthStarsDisplayPair,
@@ -452,8 +452,8 @@ private fun getColdDisplayPair(): List<ScoreboardElementType> {
return listOf(
when {
informationFilteringConfig.hideEmptyLines && cold == "0" -> "<hidden>"
- displayConfig.displayNumbersFirst -> "§b❄ $cold Cold"
- else -> "Cold: §b❄ $cold"
+ displayConfig.displayNumbersFirst -> "§b$cold❄ Cold"
+ else -> "Cold: §b$cold❄"
} to HorizontalAlignment.LEFT
)
}
diff --git a/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardPattern.kt b/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardPattern.kt
index 9627ed683..73e057db3 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardPattern.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardPattern.kt
@@ -20,7 +20,7 @@ object ScoreboardPattern {
) // this line is weird (either text or number), ill leave it as is; it even has different colors?
val coldPattern by mainSb.pattern(
"cold",
- "^(?:§.)*Cold: §.❄ (?<cold>-?\\d+)$"
+ "^(?:§.)*Cold: §.(?<cold>-?\\d+)❄$"
)
val copperPattern by mainSb.pattern(
"copper",