aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/ProfileViewer.java
diff options
context:
space:
mode:
authorDoKM <mcazzyman@gmail.com>2021-07-30 17:54:11 +0200
committerDoKM <mcazzyman@gmail.com>2021-07-30 17:54:11 +0200
commitefeee424817abfd50f79a0cdc0445fe02c9b912a (patch)
treefa40d7511892a725a85b9de562b12680fb1425c9 /src/main/java/io/github/moulberry/notenoughupdates/profileviewer/ProfileViewer.java
parent1352ae87fbd4bc520fbe084c2a5055804c4d255f (diff)
downloadnotenoughupdates-efeee424817abfd50f79a0cdc0445fe02c9b912a.tar.gz
notenoughupdates-efeee424817abfd50f79a0cdc0445fe02c9b912a.tar.bz2
notenoughupdates-efeee424817abfd50f79a0cdc0445fe02c9b912a.zip
Add ironman indicator in pv
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.java4
1 files changed, 4 insertions, 0 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 23c91dd0..9553659d 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/ProfileViewer.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/ProfileViewer.java
@@ -354,6 +354,7 @@ public class ProfileViewer {
return null;
}
+
public long getNetWorth(String profileId) {
if(profileId == null) profileId = latestProfile;
if(networth.get(profileId) != null) return networth.get(profileId);
@@ -570,6 +571,9 @@ public class ProfileViewer {
if(profile.has("banking")) {
profileInfo.add("banking", profile.get("banking").getAsJsonObject());
}
+ if(profile.has("game_mode")){
+ profileInfo.add("game_mode", profile.get("game_mode"));
+ }
profileMap.put(profileId, profileInfo);
return profileInfo;
}