diff options
Diffstat (limited to 'me')
-rw-r--r-- | me/Danker/handlers/APIHandler.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/me/Danker/handlers/APIHandler.java b/me/Danker/handlers/APIHandler.java index 006842b..67527b3 100644 --- a/me/Danker/handlers/APIHandler.java +++ b/me/Danker/handlers/APIHandler.java @@ -120,12 +120,12 @@ public class APIHandler { // Loop through profiles to find latest System.out.println("Looping through profiles..."); String latestProfile = ""; - int latestSave = 0; + long latestSave = 0; JsonArray profilesArray = profilesResponse.get("profiles").getAsJsonArray(); for (JsonElement profile : profilesArray) { JsonObject profileJSON = profile.getAsJsonObject(); - int profileLastSave = profileJSON.get("members").getAsJsonObject().get(UUID).getAsJsonObject().get("last_save").getAsInt(); + long profileLastSave = profileJSON.get("members").getAsJsonObject().get(UUID).getAsJsonObject().get("last_save").getAsLong(); if (profileLastSave > latestSave) { latestProfile = profileJSON.get("profile_id").getAsString(); |