aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorGodOfPro <59516901+GodOfProDev@users.noreply.github.com>2022-12-24 04:46:40 +0330
committerGitHub <noreply@github.com>2022-12-24 12:16:40 +1100
commit5b1c9f4959ff16be963217917a72d5bf669c4d8b (patch)
tree2774abad879a0486ac4bf0463b3f435d7b8b2c15 /src/main/java
parent3a00eb285c9f46ee8a0cd615e325c8723a3aa15d (diff)
downloadNotEnoughUpdates-5b1c9f4959ff16be963217917a72d5bf669c4d8b.tar.gz
NotEnoughUpdates-5b1c9f4959ff16be963217917a72d5bf669c4d8b.tar.bz2
NotEnoughUpdates-5b1c9f4959ff16be963217917a72d5bf669c4d8b.zip
Fixed total highest waves being included in total runs (#509)
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/profileviewer/CrimsonIslePage.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/CrimsonIslePage.java b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/CrimsonIslePage.java
index 87548f5e..95009b1d 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/CrimsonIslePage.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/CrimsonIslePage.java
@@ -211,6 +211,7 @@ public class CrimsonIslePage extends GuiProfileViewerPage {
public int getTotalKuudraRuns(JsonObject completedRuns) {
int totalRuns = 0;
for (Map.Entry<String, JsonElement> runs : completedRuns.entrySet()) {
+ if (runs.getKey().startsWith("highest_wave")) continue;
totalRuns += runs.getValue().getAsInt();
}
return totalRuns;