From 5bc104b04d62a18322a37bb9cd7dd402231178d5 Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Fri, 4 Oct 2024 17:14:31 +0700 Subject: [PATCH] Fix "negative infinity only" case not being correctly handled in history chart rendering in tooltips --- src/main/kotlin/ru/dbotthepony/mc/otm/core/util/Formatting.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/core/util/Formatting.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/core/util/Formatting.kt index f5bec4d00..e5ad9dffa 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/core/util/Formatting.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/core/util/Formatting.kt @@ -374,7 +374,7 @@ private fun formatHistoryChart( labels = ChartLevelLabels( labels = mapOf( 0.5f to Decimal.ZERO.formatSiComponent(suffix, decimals, formatAsReadable = verbose, bias = bias), - 0.9f to TextComponent("-∞"), + 0.1f to TextComponent("-∞"), ) ) } else {