diff options
author | J10a1n15 <45315647+j10a1n15@users.noreply.github.com> | 2024-03-28 21:38:41 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-28 21:38:41 +0100 |
commit | e4ae028ef44cd8cbff3c4dac609699bae9229c39 (patch) | |
tree | 315d83788a91500b462ccd774b1851ac3b3342b1 /src | |
parent | 284290211a638f678d345ca941777c4b13d6459a (diff) | |
download | skyhanni-e4ae028ef44cd8cbff3c4dac609699bae9229c39.tar.gz skyhanni-e4ae028ef44cd8cbff3c4dac609699bae9229c39.tar.bz2 skyhanni-e4ae028ef44cd8cbff3c4dac609699bae9229c39.zip |
Fix: Fixed cold line in Custom Scoreboard (#1304)
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardElements.kt | 6 | ||||
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardPattern.kt | 2 |
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", |