diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/misc/items/EstimatedItemValue.kt | 3 |
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) } |