From 5b1c9f4959ff16be963217917a72d5bf669c4d8b Mon Sep 17 00:00:00 2001 From: GodOfPro <59516901+GodOfProDev@users.noreply.github.com> Date: Sat, 24 Dec 2022 04:46:40 +0330 Subject: Fixed total highest waves being included in total runs (#509) --- .../github/moulberry/notenoughupdates/profileviewer/CrimsonIslePage.java | 1 + 1 file changed, 1 insertion(+) (limited to 'src/main/java/io') 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 runs : completedRuns.entrySet()) { + if (runs.getKey().startsWith("highest_wave")) continue; totalRuns += runs.getValue().getAsInt(); } return totalRuns; -- cgit