aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/io
diff options
context:
space:
mode:
authorjani270 <69345714+jani270@users.noreply.github.com>2024-04-12 21:25:57 +0200
committerGitHub <noreply@github.com>2024-04-12 21:25:57 +0200
commit6a661042b03f72bd7c04177d80c0f1e59bdd1587 (patch)
treec55fbcdea3ac6f67cf20185bcb90d22f8588be8f /src/main/kotlin/io
parent2811e6428c76a6f2fb9d840cc3279d00fc0aa819 (diff)
downloadNotEnoughUpdates-6a661042b03f72bd7c04177d80c0f1e59bdd1587.tar.gz
NotEnoughUpdates-6a661042b03f72bd7c04177d80c0f1e59bdd1587.tar.bz2
NotEnoughUpdates-6a661042b03f72bd7c04177d80c0f1e59bdd1587.zip
meta: Fix Bazaar Price Warning showing 1.2541234E7 instead of a formatted price (#1092)
Diffstat (limited to 'src/main/kotlin/io')
-rw-r--r--src/main/kotlin/io/github/moulberry/notenoughupdates/miscfeatures/BazaarPriceWarning.kt3
1 files changed, 2 insertions, 1 deletions
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<String> {
- return listOf("will cost you §6${price}§r coins")
+ return listOf("will cost you §6${StringUtils.formatNumber(price)}§r coins")
}
override fun getWarningPopup(): List<String> {