Skip to content

Commit

Permalink
Fix multi-acc returning prematurely in wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
The Judge committed Nov 8, 2024
1 parent 7d5a08f commit c6024b3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/pojlib/API.java
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,9 @@ public static void launchInstance(Activity activity, MinecraftAccount account, M
* @return True if removal was successful
*/
public static boolean removeAccount(Activity activity, String uuid) {
if(currentAcc.uuid.equals(uuid)) {
currentAcc = null;
}
return MinecraftAccount.removeAccount(activity, uuid);
}

Expand All @@ -211,6 +214,7 @@ public static void login(Activity activity, @Nullable String accountUUID)
}

if(accountUUID == null) {
currentAcc = null;
LoginHelper.login(activity);
return;
}
Expand Down

0 comments on commit c6024b3

Please sign in to comment.