aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorRoman / Linnea Gräf <roman.graef@gmail.com>2023-05-31 13:04:51 +0200
committerGitHub <noreply@github.com>2023-05-31 13:04:51 +0200
commite89d2e7de492c523a941cadf4747d428de6e7250 (patch)
tree064a0316f06c8ebf5a3425b9096458306dfa8f20 /src/main/java
parentf4a9e4011b09be043ec086abd365d0e8c443bbec (diff)
downloadNotEnoughUpdates-e89d2e7de492c523a941cadf4747d428de6e7250.tar.gz
NotEnoughUpdates-e89d2e7de492c523a941cadf4747d428de6e7250.tar.bz2
NotEnoughUpdates-e89d2e7de492c523a941cadf4747d428de6e7250.zip
Fix Soopy Networth (#706)
* Fix Soopy Networth * Add api cache clear command
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 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());