summaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features/gui
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-06-14 15:48:37 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-06-14 15:48:37 +0200
commita996d8150ef2367e7c839f3565d60bdb68d2125d (patch)
tree4da38c50d07b3e2cfa0352694d254225a715715e /src/main/java/at/hannibal2/skyhanni/features/gui
parent9f55fd15544e187491d78e2c5ecf2f2ed8ac76f1 (diff)
downloadskyhanni-a996d8150ef2367e7c839f3565d60bdb68d2125d.tar.gz
skyhanni-a996d8150ef2367e7c839f3565d60bdb68d2125d.tar.bz2
skyhanni-a996d8150ef2367e7c839f3565d60bdb68d2125d.zip
Revert "creating and using Number.format()"
This reverts commit 9f55fd15544e187491d78e2c5ecf2f2ed8ac76f1.
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/gui')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/CustomScoreboardUtils.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/CustomScoreboardUtils.kt b/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/CustomScoreboardUtils.kt
index 6e6f9e609..8aae8fe55 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/CustomScoreboardUtils.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/CustomScoreboardUtils.kt
@@ -5,8 +5,8 @@ import at.hannibal2.skyhanni.data.HypixelData
import at.hannibal2.skyhanni.data.ScoreboardData
import at.hannibal2.skyhanni.features.bingo.BingoAPI
import at.hannibal2.skyhanni.features.gui.customscoreboard.CustomScoreboard.displayConfig
+import at.hannibal2.skyhanni.utils.NumberUtil
import at.hannibal2.skyhanni.utils.NumberUtil.addSeparators
-import at.hannibal2.skyhanni.utils.NumberUtil.format
import at.hannibal2.skyhanni.utils.NumberUtil.formatDouble
import at.hannibal2.skyhanni.utils.RegexUtils.matchMatcher
import at.hannibal2.skyhanni.utils.StringUtils.removeResets
@@ -34,7 +34,7 @@ object CustomScoreboardUtils {
}
internal fun Number.formatNum(): String = when (displayConfig.numberFormat) {
- DisplayConfig.NumberFormat.SHORT -> this.format()
+ DisplayConfig.NumberFormat.SHORT -> NumberUtil.format(this)
DisplayConfig.NumberFormat.LONG -> this.addSeparators()
else -> "0"
}