Fixed demo mode
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
913d81e371
commit
50a4d61ded
5 changed files with 71 additions and 33 deletions
|
@ -269,6 +269,8 @@ void MinecraftAccount::fillSession(AuthSessionPtr session)
|
|||
session->player_name = data.profileName();
|
||||
// profile ID
|
||||
session->uuid = data.profileId();
|
||||
if (session->uuid.isEmpty())
|
||||
session->uuid = uuidFromUsername(session->player_name).toString().remove(QRegularExpression("[{}-]"));
|
||||
// 'legacy' or 'mojang', depending on account type
|
||||
session->user_type = typeString();
|
||||
if (!session->access_token.isEmpty()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue