From 30805daacae5f5b9d06bd239c958368815236c73 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Mon, 10 Jul 2023 16:27:53 +0200 Subject: No more decimal numbers if estimated item value is set to show exact price --- .../at/hannibal2/skyhanni/features/misc/items/EstimatedItemValue.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/main/java/at/hannibal2/skyhanni/features') 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) } -- cgit