From 46d5a8758226cd5f45176a76d737f8af11325517 Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Tue, 11 Feb 2025 21:35:24 +0700 Subject: [PATCH] Display two digits in flywheel material tooltip --- .../kotlin/ru/dbotthepony/mc/otm/data/FlywheelMaterials.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/data/FlywheelMaterials.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/data/FlywheelMaterials.kt index 8844b8251..51ef535fc 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/data/FlywheelMaterials.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/data/FlywheelMaterials.kt @@ -248,11 +248,11 @@ object FlywheelMaterials : SimpleJsonResourceReloadListener(GsonBuilder().setPre event.toolTip.add(TranslatableComponent("otm.gui.flywheel.storage", entry.storage.formatPower()).withStyle(ChatFormatting.GRAY)) if (entry.receiveEfficiency != Decimal.ONE) { - event.toolTip.add(TranslatableComponent("otm.gui.flywheel.receive_efficiency", entry.receiveEfficiency.toString(1)).withStyle(ChatFormatting.GRAY)) + event.toolTip.add(TranslatableComponent("otm.gui.flywheel.receive_efficiency", entry.receiveEfficiency.toString(2)).withStyle(ChatFormatting.GRAY)) } if (entry.momentumLossSpeed != Decimal.ONE) { - event.toolTip.add(TranslatableComponent("otm.gui.flywheel.momentum_loss_speed", entry.momentumLossSpeed.toString(1)).withStyle(ChatFormatting.GRAY)) + event.toolTip.add(TranslatableComponent("otm.gui.flywheel.momentum_loss_speed", entry.momentumLossSpeed.toString(2)).withStyle(ChatFormatting.GRAY)) } } }