diff options
author | ENORMOUZ <68216143+ENORMOUZ@users.noreply.github.com> | 2022-10-31 18:24:39 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-31 11:24:39 +0100 |
commit | e42dd2aa0a2e0a988e820e1ceb13cf2bc30ba987 (patch) | |
tree | 9c6a4f386a1a5bd948f240b0519784c88996e314 /src/main/java | |
parent | 41d1093d34599a903df4b4cbbd76067dc7e6ce9e (diff) | |
download | NotEnoughUpdates-e42dd2aa0a2e0a988e820e1ceb13cf2bc30ba987.tar.gz NotEnoughUpdates-e42dd2aa0a2e0a988e820e1ceb13cf2bc30ba987.tar.bz2 NotEnoughUpdates-e42dd2aa0a2e0a988e820e1ceb13cf2bc30ba987.zip |
(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.
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/auction/APIManager.java | 2 |
1 files changed, 1 insertions, 1 deletions
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; |