diff --git a/api/logic/minecraft/auth/MojangAccount.cpp b/api/logic/minecraft/auth/MojangAccount.cpp index 7e47e352..9df4606c 100644 --- a/api/logic/minecraft/auth/MojangAccount.cpp +++ b/api/logic/minecraft/auth/MojangAccount.cpp @@ -195,6 +195,15 @@ 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); } return nullptr;