aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/ItemPriceInformation.java2
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";
}