diff options
Diffstat (limited to 'src/main/java/de/cowtipper/cowlection/util/GsonUtils.java')
-rw-r--r-- | src/main/java/de/cowtipper/cowlection/util/GsonUtils.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/de/cowtipper/cowlection/util/GsonUtils.java b/src/main/java/de/cowtipper/cowlection/util/GsonUtils.java index c21a1fd..ae2ddb2 100644 --- a/src/main/java/de/cowtipper/cowlection/util/GsonUtils.java +++ b/src/main/java/de/cowtipper/cowlection/util/GsonUtils.java @@ -187,9 +187,9 @@ public final class GsonUtils { JsonObject lowestBins = json.getAsJsonObject(); for (Map.Entry<String, JsonElement> entry : lowestBins.entrySet()) { try { - lowestBinsCache.put(entry.getKey(), entry.getValue().getAsInt()); + lowestBinsCache.put(entry.getKey(), entry.getValue().getAsLong()); } catch (ClassCastException | NumberFormatException ignored) { - // somehow not an integer + // somehow not a long } } return lowestBinsCache; |