Skip to content

Commit

Permalink
Merge pull request #310 from stucq/patch-1
Browse files Browse the repository at this point in the history
initialize MinecraftAccount::data.minecraftProfile.id
  • Loading branch information
Neptune650 authored Nov 12, 2023
2 parents 6883ec6 + 5deeeb5 commit be89b84
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions launcher/minecraft/auth/MinecraftAccount.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ MinecraftAccountPtr MinecraftAccount::createFromUsername(const QString &username
account->data.type = AccountType::Mojang;
account->data.yggdrasilToken.extra["userName"] = username;
account->data.yggdrasilToken.extra["clientToken"] = QUuid::createUuid().toString().remove(QRegExp("[{}-]"));
account->data.minecraftProfile.id = account->data.internalId;
return account;
}

Expand Down

0 comments on commit be89b84

Please sign in to comment.