Skip to content

Commit

Permalink
initialize MinecraftAccount::data.minecraftProfile.id
Browse files Browse the repository at this point in the history
  • Loading branch information
stucq authored Oct 21, 2023
1 parent 6883ec6 commit 5deeeb5
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 5deeeb5

Please sign in to comment.