Skip to content

Commit

Permalink
fix: allow offline usernames to be valid
Browse files Browse the repository at this point in the history
  • Loading branch information
rexlManu committed Jun 10, 2023
1 parent 55cf66c commit 0f7aeb2
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions launcher/minecraft/auth/AccountList.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -657,13 +657,14 @@ void AccountList::setListFilePath(QString path, bool autosave)

bool AccountList::anyAccountIsValid()
{
for(auto account: m_accounts)
{
if(account->ownsMinecraft()) {
return true;
}
}
return false;
// Support also offline accounts for launching instances
// for(auto account: m_accounts)
// {
// if(account->ownsMinecraft()) {
// return true;
// }
// }
return true;
}

void AccountList::fillQueue() {
Expand Down

0 comments on commit 0f7aeb2

Please sign in to comment.