diff options
author | Roman / Linnea Gräf <roman.graef@gmail.com> | 2022-12-07 03:47:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-07 13:47:27 +1100 |
commit | dccf7ee3c7797b92360a91f5bc34d99ef997d0bd (patch) | |
tree | 38a131c37881d990532dc19486ca27b052cee089 /src/main/java/io | |
parent | 8874ae66e226a6bf59a0431117f34d2a47c1719c (diff) | |
download | NotEnoughUpdates-dccf7ee3c7797b92360a91f5bc34d99ef997d0bd.tar.gz NotEnoughUpdates-dccf7ee3c7797b92360a91f5bc34d99ef997d0bd.tar.bz2 NotEnoughUpdates-dccf7ee3c7797b92360a91f5bc34d99ef997d0bd.zip |
Do not bail out from finding profiles after finding main profile (#474)
Fixes https://github.com/NotEnoughUpdates/NotEnoughUpdates/issues/452
Diffstat (limited to 'src/main/java/io')
-rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/profileviewer/ProfileViewer.java | 10 |
1 files changed, 0 insertions, 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; - } } } } |