aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/ProfileViewer.java
diff options
context:
space:
mode:
authorMoulberry <james.jenour@student.scotch.wa.edu.au>2020-10-31 21:49:14 +1100
committerMoulberry <james.jenour@student.scotch.wa.edu.au>2020-10-31 21:49:14 +1100
commit431d4a5eca207aa6f86a90e3c4e1912885f115eb (patch)
tree8d3bd19ad3d40da034aaca8e2766dadb627bfaf1 /src/main/java/io/github/moulberry/notenoughupdates/profileviewer/ProfileViewer.java
parent2397734d98c30a05db58bc6ef67607078889a386 (diff)
downloadnotenoughupdates-431d4a5eca207aa6f86a90e3c4e1912885f115eb.tar.gz
notenoughupdates-431d4a5eca207aa6f86a90e3c4e1912885f115eb.tar.bz2
notenoughupdates-431d4a5eca207aa6f86a90e3c4e1912885f115eb.zip
1.4.9
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/profileviewer/ProfileViewer.java')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/profileviewer/ProfileViewer.java6
1 files changed, 4 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 007ab7a9..e4ab29d2 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/ProfileViewer.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/ProfileViewer.java
@@ -914,9 +914,11 @@ public class ProfileViewer {
}
public PlayerStats.Stats getStats(String profileId) {
- if(stats.get(profileId) != null) return stats.get(profileId);
+ //if(stats.get(profileId) != null) return stats.get(profileId);
JsonObject profileInfo = getProfileInformation(profileId);
- if(profileInfo == null) return null;
+ if(profileInfo == null) {
+ return null;
+ }
PlayerStats.Stats stats = PlayerStats.getStats(getSkillInfo(profileId), getInventoryInfo(profileId), getCollectionInfo(profileId), profileInfo);
this.stats.put(profileId, stats);