diff options
author | hannibal2 <24389977+hannibal002@users.noreply.github.com> | 2023-06-08 15:59:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-08 15:59:10 +0200 |
commit | a6fb7bfb97d313b665085a52a660150f1da26065 (patch) | |
tree | a4699f7a48e660d690ddb5d7500435543e55d3b3 | |
parent | abf5e1541e936f821216f11e285a33f2a50794b4 (diff) | |
download | NotEnoughUpdates-a6fb7bfb97d313b665085a52a660150f1da26065.tar.gz NotEnoughUpdates-a6fb7bfb97d313b665085a52a660150f1da26065.tar.bz2 NotEnoughUpdates-a6fb7bfb97d313b665085a52a660150f1da26065.zip |
Made doubles great again (#713)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Co-authored-by: nopo <nopotheemail@gmail.com>
-rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/ItemPriceInformation.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/ItemPriceInformation.java b/src/main/java/io/github/moulberry/notenoughupdates/ItemPriceInformation.java index 64e83b3b..84dc8db2 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/ItemPriceInformation.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/ItemPriceInformation.java @@ -481,7 +481,7 @@ public class ItemPriceInformation { boolean shortNumber = NotEnoughUpdates.INSTANCE.config.tooltipTweaks.shortNumberFormatPrices; String number = (shortNumber && price > 1000 ? Utils.shortNumberFormat(price, 0) - : price > 5 ? format.format((int) price) : format.format(price)); + : price > 5 && Integer.MAX_VALUE > price ? format.format((int) price) : format.format(price)); return "§e§l" + label + "§6§l" + number + " coins"; } |