From dccf7ee3c7797b92360a91f5bc34d99ef997d0bd Mon Sep 17 00:00:00 2001 From: Roman / Linnea Gräf Date: Wed, 7 Dec 2022 03:47:27 +0100 Subject: Do not bail out from finding profiles after finding main profile (#474) Fixes https://github.com/NotEnoughUpdates/NotEnoughUpdates/issues/452 --- .../notenoughupdates/profileviewer/ProfileViewer.java | 10 ---------- 1 file changed, 10 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 a1a91a5d..5337a99c 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/ProfileViewer.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/ProfileViewer.java @@ -1075,7 +1075,6 @@ public class ProfileViewer { skyblockProfiles = jsonObject.get("profiles").getAsJsonArray(); String lastCuteName = null; - long lastLastSave = 0; profileNames.clear(); @@ -1098,15 +1097,6 @@ public class ProfileViewer { profileNames.add(cuteName); if (profile.has("selected") && profile.get("selected").getAsBoolean()) { lastCuteName = cuteName; - break; - } - if (lastCuteName == null) lastCuteName = cuteName; - if (member.has("last_save")) { - long lastSave = member.get("last_save").getAsLong(); - if (lastSave > lastLastSave) { - lastLastSave = lastSave; - lastCuteName = cuteName; - } } } } -- cgit