NOISSUE Add server launch arguments

This commit is contained in:
Janrupf 2021-05-22 13:54:34 +02:00
parent f0eb5b4a0c
commit cc6cd0648a

View File

@ -409,6 +409,12 @@ QStringList MinecraftInstance::processMinecraftArgs(AuthSessionPtr session) cons
args_pattern += " --tweakClass " + tweaker; args_pattern += " --tweakClass " + tweaker;
} }
if (m_settings->get("JoinServerOnLaunch").toBool())
{
args_pattern += " --server " + m_settings->get("JoinServerOnLaunchAddress").toString();
args_pattern += " --port " + m_settings->get("JoinServerOnLaunchPort").toString();
}
QMap<QString, QString> token_mapping; QMap<QString, QString> token_mapping;
// yggdrasil! // yggdrasil!
if(session) if(session)