From 395206736667972ad6b432ebf073831016017ecb Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Tue, 16 Aug 2022 17:43:11 +0700 Subject: [PATCH] Don't put fractional digits for pattern count --- .../kotlin/ru/dbotthepony/mc/otm/client/screen/widget/Gauges.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/client/screen/widget/Gauges.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/client/screen/widget/Gauges.kt index 6f799442e..227c96514 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/client/screen/widget/Gauges.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/client/screen/widget/Gauges.kt @@ -107,7 +107,7 @@ open class PatternGaugePanel @JvmOverloads constructor( protected open fun makeTooltip(): MutableList { return mutableListOf( TranslatableComponent("otm.gui.pattern.percentage_level", String.format("%.2f", widget.percentage() * 100.0)), - TranslatableComponent("otm.gui.pattern.format", widget.level().toString(2), widget.maxLevel().toString(2)) + TranslatableComponent("otm.gui.pattern.format", widget.level().toString(0), widget.maxLevel().toString(0)) ) }