From a6fb7bfb97d313b665085a52a660150f1da26065 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal002@users.noreply.github.com> Date: Thu, 8 Jun 2023 15:59:10 +0200 Subject: Made doubles great again (#713) Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Co-authored-by: nopo --- .../java/io/github/moulberry/notenoughupdates/ItemPriceInformation.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"; } -- cgit