Skip to content

Commit

Permalink
Format Numbers in Tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
IntegerLimit committed Nov 14, 2024
1 parent f261c35 commit fe855a1
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,8 @@ public void addInformation(ItemStack stack, @Nullable World player, @NotNull Lis
boolean advanced) {
super.addInformation(stack, player, tooltip, advanced);
tooltip.add(I18n.format("gregtech.multiblock.large_boiler.rate_tooltip",
(int) (boilerType.steamPerTick() * 20 * boilerType.runtimeBoost(200) / 20.0)));
TextFormattingUtil
.formatNumbers((int) (boilerType.steamPerTick() * 20 * boilerType.runtimeBoost(200) / 20.0))));
tooltip.add(
I18n.format("gregtech.multiblock.large_boiler.heat_time_tooltip", boilerType.getTicksToBoiling() / 20));
tooltip.add(I18n.format("gregtech.universal.tooltip.base_production_fluid", boilerType.steamPerTick()));
Expand Down

0 comments on commit fe855a1

Please sign in to comment.