Display two digits in flywheel material tooltip
This commit is contained in:
parent
43eb2b7ac8
commit
46d5a87582
@ -248,11 +248,11 @@ object FlywheelMaterials : SimpleJsonResourceReloadListener(GsonBuilder().setPre
|
|||||||
event.toolTip.add(TranslatableComponent("otm.gui.flywheel.storage", entry.storage.formatPower()).withStyle(ChatFormatting.GRAY))
|
event.toolTip.add(TranslatableComponent("otm.gui.flywheel.storage", entry.storage.formatPower()).withStyle(ChatFormatting.GRAY))
|
||||||
|
|
||||||
if (entry.receiveEfficiency != Decimal.ONE) {
|
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) {
|
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))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user