From 356905aa75f2decd2d3ba0e1d800db10f892935e Mon Sep 17 00:00:00 2001 From: Zakhar Afonin Date: Sun, 30 May 2021 17:22:15 +0300 Subject: [PATCH] Fixed: a dummy profile now gets created regardless of game being launched once --- api/logic/minecraft/auth/MojangAccount.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/api/logic/minecraft/auth/MojangAccount.cpp b/api/logic/minecraft/auth/MojangAccount.cpp index 9df4606c..0774b9a2 100644 --- a/api/logic/minecraft/auth/MojangAccount.cpp +++ b/api/logic/minecraft/auth/MojangAccount.cpp @@ -195,17 +195,17 @@ std::shared_ptr MojangAccount::login(AuthSessionPtr session, QStr { session->status = AuthSession::PlayableOnline; session->auth_server_online = false; - if (!currentProfile()) - { - // TODO: Proper profile support (idk how) - auto dummyProfile = AccountProfile(); - dummyProfile.name = m_username; - dummyProfile.id = "-"; - m_profiles.append(dummyProfile); - m_currentProfile = 0; - } fillSession(session); } + if (!currentProfile()) + { + // TODO: Proper profile support (idk how) + auto dummyProfile = AccountProfile(); + dummyProfile.name = m_username; + dummyProfile.id = "-"; + m_profiles.append(dummyProfile); + m_currentProfile = 0; + } return nullptr; }