aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authornea <romangraef@gmail.com>2022-09-29 01:15:45 +0200
committernea <romangraef@gmail.com>2022-09-29 01:15:45 +0200
commit8a96e1a834fc7f15474dff730dfb5163de4abe68 (patch)
tree48210da852ccc43fac7ee48dc7e142a973d1dcbb /src
parent52ccb516243af957023d2b5259ffe4d2c51c326c (diff)
downloadNotEnoughUpdates-8a96e1a834fc7f15474dff730dfb5163de4abe68.tar.gz
NotEnoughUpdates-8a96e1a834fc7f15474dff730dfb5163de4abe68.tar.bz2
NotEnoughUpdates-8a96e1a834fc7f15474dff730dfb5163de4abe68.zip
Use api selected variable to find best profile
Diffstat (limited to 'src')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/profileviewer/ProfileViewer.java4
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 c9bd92a3..77ba256b 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/ProfileViewer.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/ProfileViewer.java
@@ -825,6 +825,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")) {