aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2022-08-09 12:47:39 +0200
committerGitHub <noreply@github.com>2022-08-09 12:47:39 +0200
commitc08749f615e59dc4a045d119af19ae093adffdc1 (patch)
treecd6e1c4eed17b05f03432560533a3eacc00de791 /src/main/java
parent2672980655cf1beae8b20cd34ae1dee3a5d74c90 (diff)
downloadNotEnoughUpdates-c08749f615e59dc4a045d119af19ae093adffdc1.tar.gz
NotEnoughUpdates-c08749f615e59dc4a045d119af19ae093adffdc1.tar.bz2
NotEnoughUpdates-c08749f615e59dc4a045d119af19ae093adffdc1.zip
fixed some collection int limit display problems in pv collection page (#207)
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/profileviewer/ProfileViewer.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/ProfileViewer.java b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/ProfileViewer.java
index 557089f0..1b5c8950 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/ProfileViewer.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/ProfileViewer.java
@@ -1315,7 +1315,7 @@ public class ProfileViewer {
}
for (Map.Entry<String, JsonElement> entry : personalAmounts.entrySet()) {
- totalAmounts.addProperty(entry.getKey(), entry.getValue().getAsInt());
+ totalAmounts.addProperty(entry.getKey(), entry.getValue().getAsLong());
}
List<JsonObject> coopProfiles = getCoopProfileInformation(profileId);
@@ -1325,7 +1325,7 @@ public class ProfileViewer {
if (coopCollectionInfoElement != null && coopCollectionInfoElement.isJsonObject()) {
for (Map.Entry<String, JsonElement> entry : coopCollectionInfoElement.getAsJsonObject().entrySet()) {
float existing = Utils.getElementAsFloat(totalAmounts.get(entry.getKey()), 0);
- totalAmounts.addProperty(entry.getKey(), existing + entry.getValue().getAsInt());
+ totalAmounts.addProperty(entry.getKey(), existing + entry.getValue().getAsLong());
}
}
}