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; }