From 6a661042b03f72bd7c04177d80c0f1e59bdd1587 Mon Sep 17 00:00:00 2001 From: jani270 <69345714+jani270@users.noreply.github.com> Date: Fri, 12 Apr 2024 21:25:57 +0200 Subject: meta: Fix Bazaar Price Warning showing 1.2541234E7 instead of a formatted price (#1092) --- .../moulberry/notenoughupdates/miscfeatures/BazaarPriceWarning.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/io/github/moulberry/notenoughupdates/miscfeatures/BazaarPriceWarning.kt b/src/main/kotlin/io/github/moulberry/notenoughupdates/miscfeatures/BazaarPriceWarning.kt index d198100a..8dc656ba 100644 --- a/src/main/kotlin/io/github/moulberry/notenoughupdates/miscfeatures/BazaarPriceWarning.kt +++ b/src/main/kotlin/io/github/moulberry/notenoughupdates/miscfeatures/BazaarPriceWarning.kt @@ -21,6 +21,7 @@ package io.github.moulberry.notenoughupdates.miscfeatures import io.github.moulberry.notenoughupdates.NotEnoughUpdates import io.github.moulberry.notenoughupdates.autosubscribe.NEUAutoSubscribe +import io.github.moulberry.notenoughupdates.core.util.StringUtils import io.github.moulberry.notenoughupdates.events.SlotClickEvent import io.github.moulberry.notenoughupdates.util.ItemUtils import io.github.moulberry.notenoughupdates.util.Utils @@ -70,7 +71,7 @@ class BazaarPriceWarning : WarningPopUp() { } override fun getWarningLines(): List { - return listOf("will cost you §6${price}§r coins") + return listOf("will cost you §6${StringUtils.formatNumber(price)}§r coins") } override fun getWarningPopup(): List { -- cgit