aboutsummaryrefslogtreecommitdiff
path: root/launcher/minecraft/launch
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2021-12-30 21:26:29 +0100
committerPetr Mrázek <peterix@gmail.com>2021-12-30 21:26:29 +0100
commit94fdf13f4a113bb1ffc75a4862308f12c904b2c4 (patch)
treea9a0d1176b4372fd845e8b7c3706dba13e81a60c /launcher/minecraft/launch
parent3efcccf334e28d03605dd0597f53f900105cf04b (diff)
downloadPrismLauncher-94fdf13f4a113bb1ffc75a4862308f12c904b2c4.tar.gz
PrismLauncher-94fdf13f4a113bb1ffc75a4862308f12c904b2c4.tar.bz2
PrismLauncher-94fdf13f4a113bb1ffc75a4862308f12c904b2c4.zip
NOISSUE proper fix for missing profile + demo mode
Diffstat (limited to 'launcher/minecraft/launch')
-rw-r--r--launcher/minecraft/launch/ClaimAccount.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/launcher/minecraft/launch/ClaimAccount.cpp b/launcher/minecraft/launch/ClaimAccount.cpp
index bb4f6806..1cd7c0da 100644
--- a/launcher/minecraft/launch/ClaimAccount.cpp
+++ b/launcher/minecraft/launch/ClaimAccount.cpp
@@ -6,7 +6,7 @@
ClaimAccount::ClaimAccount(LaunchTask* parent, AuthSessionPtr session): LaunchStep(parent)
{
- if(session->status == AuthSession::Status::PlayableOnline)
+ if(session->status == AuthSession::Status::PlayableOnline && !session->demo)
{
auto accounts = APPLICATION->accounts();
m_account = accounts->getAccountByProfileName(session->player_name);