Skip to content

Commit

Permalink
Make Million/Billion/Trillion abbreviations capitalized
Browse files Browse the repository at this point in the history
  • Loading branch information
AzureAaron committed May 14, 2024
1 parent 59a668b commit 3d1215e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/de/hysky/skyblocker/skyblock/CompactDamage.java
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ public static void compactDamage(ArmorStandEntity entity) {
private static String prettifyDamageNumber(long damage) {
if (damage < 1_000) return String.valueOf(damage);
if (damage < 1_000_000) return format(damage / 1_000.0) + "k";
if (damage < 1_000_000_000) return format(damage / 1_000_000.0) + "m";
if (damage < 1_000_000_000_000L) return format(damage / 1_000_000_000.0) + "b";
return format(damage / 1_000_000_000_000.0) + "t"; //This will probably never be reached
if (damage < 1_000_000_000) return format(damage / 1_000_000.0) + "M";
if (damage < 1_000_000_000_000L) return format(damage / 1_000_000_000.0) + "B";
return format(damage / 1_000_000_000_000.0) + "T"; //This will probably never be reached
}

private static String format(double number) {
Expand Down

0 comments on commit 3d1215e

Please sign in to comment.