aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-07-10 16:27:53 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-07-10 16:27:53 +0200
commit30805daacae5f5b9d06bd239c958368815236c73 (patch)
tree256483cce7fd5bc1c3a6d7231596400d3415e552 /src
parent87596dcfa90d124ea1665958ec21cb3b29ef5bea (diff)
downloadskyhanni-30805daacae5f5b9d06bd239c958368815236c73.tar.gz
skyhanni-30805daacae5f5b9d06bd239c958368815236c73.tar.bz2
skyhanni-30805daacae5f5b9d06bd239c958368815236c73.zip
No more decimal numbers if estimated item value is set to show exact price
Diffstat (limited to 'src')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/misc/items/EstimatedItemValue.kt3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/items/EstimatedItemValue.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/items/EstimatedItemValue.kt
index df1763130..c9e0924e2 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/misc/items/EstimatedItemValue.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/misc/items/EstimatedItemValue.kt
@@ -43,6 +43,7 @@ import io.github.moulberry.notenoughupdates.util.Constants
import net.minecraft.init.Items
import net.minecraft.item.ItemStack
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent
+import kotlin.math.roundToLong
object EstimatedItemValue {
private val config get() = SkyHanniMod.feature.misc
@@ -120,7 +121,7 @@ object EstimatedItemValue {
if (basePrice == totalPrice) return listOf()
val numberFormat = if (config.estimatedIemValueExactPrice) {
- totalPrice.addSeparators()
+ totalPrice.roundToLong().addSeparators()
} else {
NumberUtil.format(totalPrice)
}