修复升级进度百分比显示错误

This commit is contained in:
Light_Quanta 2024-05-11 03:46:31 +08:00
parent b094f4db87
commit f22d9de943
No known key found for this signature in database
GPG key ID: 11A39A1B8C890959

View file

@ -63,7 +63,7 @@ public class TooltipTool {
tooltip.add(Component.translatable("des.target.tips.level").withStyle(ChatFormatting.GRAY)
.append(Component.literal("").withStyle(ChatFormatting.RESET))
.append(Component.literal(level + " " + new DecimalFormat("##.##").format(rate) + "%").withStyle(formatting).withStyle(ChatFormatting.BOLD)));
.append(Component.literal(level + " " + new DecimalFormat("##.##").format(rate * 100) + "%").withStyle(formatting).withStyle(ChatFormatting.BOLD)));
}