Skip to content

Commit

Permalink
Fixed the alt manager's incidental limit of 3 Microsoft accounts.
Browse files Browse the repository at this point in the history
  • Loading branch information
0xTas committed Oct 12, 2024
1 parent 4696ec1 commit 7437ce6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public void init() {
screen.locked = true;

MeteorExecutor.execute(() -> {
if (account.login()) {
if (account.fetchInfo() && account.login()) {
name.set(account.getUsername());

Accounts.get().save();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,18 +73,14 @@ public Accounts fromTag(NbtCompound tag) {
AccountType type = AccountType.valueOf(t.getString("type"));

try {
Account<?> account = switch (type) {
return switch (type) {
case Cracked -> new CrackedAccount(null).fromTag(t);
case Microsoft -> new MicrosoftAccount(null).fromTag(t);
case TheAltening -> new TheAlteningAccount(null).fromTag(t);
};

if (account.fetchInfo()) return account;
} catch (NbtException e) {
return null;
}

return null;
}));

return this;
Expand Down

0 comments on commit 7437ce6

Please sign in to comment.