diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-06-14 15:48:37 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-06-14 15:48:37 +0200 |
commit | a996d8150ef2367e7c839f3565d60bdb68d2125d (patch) | |
tree | 4da38c50d07b3e2cfa0352694d254225a715715e /src/main/java/at/hannibal2/skyhanni/utils/tracker | |
parent | 9f55fd15544e187491d78e2c5ecf2f2ed8ac76f1 (diff) | |
download | skyhanni-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/utils/tracker')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/utils/tracker/SkyHanniItemTracker.kt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/tracker/SkyHanniItemTracker.kt b/src/main/java/at/hannibal2/skyhanni/utils/tracker/SkyHanniItemTracker.kt index 2e8b990a9..57595c1c1 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/tracker/SkyHanniItemTracker.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/tracker/SkyHanniItemTracker.kt @@ -13,8 +13,8 @@ import at.hannibal2.skyhanni.utils.KeyboardManager import at.hannibal2.skyhanni.utils.LorenzUtils import at.hannibal2.skyhanni.utils.LorenzUtils.addSelector import at.hannibal2.skyhanni.utils.NEUInternalName +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.StringUtils.removeColor import at.hannibal2.skyhanni.utils.renderables.Renderable import kotlin.time.Duration.Companion.seconds @@ -106,7 +106,7 @@ class SkyHanniItemTracker<Data : ItemTrackerData>( internalName.itemName } - val priceFormat = price.format() + val priceFormat = NumberUtil.format(price) val hidden = itemProfit.hidden val newDrop = itemProfit.lastTimeUpdated.passedSince() < 10.seconds && config.showRecentDrops val numberColor = if (newDrop) "§a§l" else "§7" @@ -183,7 +183,7 @@ class SkyHanniItemTracker<Data : ItemTrackerData>( val tips = if (totalAmount > 0) { val profitPerCatch = profit / totalAmount - val profitPerCatchFormat = profitPerCatch.format() + val profitPerCatchFormat = NumberUtil.format(profitPerCatch) listOf("§7Profit per $action: $profitPrefix$profitPerCatchFormat") } else emptyList() |