From e42dd2aa0a2e0a988e820e1ceb13cf2bc30ba987 Mon Sep 17 00:00:00 2001 From: ENORMOUZ <68216143+ENORMOUZ@users.noreply.github.com> Date: Mon, 31 Oct 2022 18:24:39 +0800 Subject: (Maybe) Make it so prices can be more than integer limit? (#362) Couldn't test this in IntelliJ for some reason so I hope this works, but expect it not to since its untested. --- .../java/io/github/moulberry/notenoughupdates/auction/APIManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/io/github/moulberry/notenoughupdates/auction/APIManager.java b/src/main/java/io/github/moulberry/notenoughupdates/auction/APIManager.java index 755e53f5..53e72dc1 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/auction/APIManager.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/auction/APIManager.java @@ -280,7 +280,7 @@ public class APIManager { if (lowestBins != null && lowestBins.has(internalName)) { JsonElement e = lowestBins.get(internalName); if (e.isJsonPrimitive() && e.getAsJsonPrimitive().isNumber()) { - return e.getAsBigDecimal().longValue(); + return e.getAsLong(); } } return -1; -- cgit