diff options
Diffstat (limited to 'src/main/java/io')
-rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/profileviewer/ProfileViewer.java | 4 |
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 62f55fd7..ea852da3 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/ProfileViewer.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/ProfileViewer.java @@ -937,10 +937,10 @@ public class ProfileViewer { JsonObject profile = skyblockProfiles.get(i).getAsJsonObject(); String cuteName = profile.get("cute_name").getAsString(); - String profileId = profile.get("profile_id").getAsString(); + String profileId = profile.get("profile_id").getAsString().replace("-", ""); SoopyNetworthData networth; - if (jsonObject.getAsJsonObject("data").get(profileId).isJsonNull()) { + if (jsonObject.getAsJsonObject("data").get(profileId) == null) { networth = new SoopyNetworthData(null); } else { networth = new SoopyNetworthData(jsonObject.getAsJsonObject("data").get(profileId).getAsJsonObject()); |