diff options
author | nea <romangraef@gmail.com> | 2022-09-29 01:15:45 +0200 |
---|---|---|
committer | nea <romangraef@gmail.com> | 2022-09-29 01:16:28 +0200 |
commit | 99a4e5748471800dde82c02d5421d1db681c9838 (patch) | |
tree | 7e30d0a79268b8c85a43f15a79b4c959d7833b66 | |
parent | bd2dcfbd8a51b038f399eda167677365db198a93 (diff) | |
download | NotEnoughUpdates-99a4e5748471800dde82c02d5421d1db681c9838.tar.gz NotEnoughUpdates-99a4e5748471800dde82c02d5421d1db681c9838.tar.bz2 NotEnoughUpdates-99a4e5748471800dde82c02d5421d1db681c9838.zip |
Use api selected variable to find best profile
-rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/profileviewer/ProfileViewer.java | 4 |
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 ec68071e..983cbf4e 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/ProfileViewer.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/ProfileViewer.java @@ -887,6 +887,10 @@ public class ProfileViewer { } String cuteName = profile.get("cute_name").getAsString(); + if (profile.has("selected") && profile.get("selected").getAsBoolean()) { + lastCuteName = cuteName; + break; + } if (lastCuteName == null) lastCuteName = cuteName; profileNames.add(cuteName); if (member.has("last_save")) { |