Skip to content

Commit bacafef

Browse files
committed
fix: format the number of fluid droplets using NUMBER_FORMAT
1 parent 087165a commit bacafef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/dev/galacticraft/machinelib/client/api/util/DisplayUtil.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public static String truncateDecimal(double d, int places) {
8383
if (!forceDetail && MachineLib.CONFIG.fluidUnits() == Config.FluidUnits.MILLIBUCKET) {
8484
return Component.literal(truncateDecimal((double) amount / ((double) (FluidConstants.BUCKET / 1000)), 0)).append(Component.translatable(Constant.TranslationKey.UNIT_MILLIBUCKET));
8585
}
86-
return Component.literal(String.valueOf(amount));
86+
return Component.literal(NUMBER_FORMAT.format(amount));
8787
}
8888

8989
public static @NotNull @Unmodifiable List<Component> wrapText(@NotNull Component text, int length) {

0 commit comments

Comments
 (0)