Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check to not add java runtime arguments for 1.16.4 and 1.16.5 when using authlib-injector account #140

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions launcher/minecraft/MinecraftInstance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -543,12 +543,16 @@ QString MinecraftInstance::getLauncher()
QStringList MinecraftInstance::processAuthArgs(AuthSessionPtr session) const
{
QStringList args;
QString v = m_components->getProfile()->getMinecraftVersion();

if (session->uses_custom_api_servers) {
args << "-Dminecraft.api.env=custom";
args << "-Dminecraft.api.auth.host=" + session->auth_server_url;
args << "-Dminecraft.api.account.host=" + session->account_server_url;
args << "-Dminecraft.api.session.host=" + session->session_server_url;
args << "-Dminecraft.api.services.host=" + session->services_server_url;
if (v != "1.16.4" && v != "1.16.5") {
args << "-Dminecraft.api.env=custom";
args << "-Dminecraft.api.auth.host=" + session->auth_server_url;
args << "-Dminecraft.api.account.host=" + session->account_server_url;
args << "-Dminecraft.api.session.host=" + session->session_server_url;
args << "-Dminecraft.api.services.host=" + session->services_server_url;
}
auto agents = m_components->getProfile()->getAgents();
for (auto agent : agents) {
if (agent->library()->artifactPrefix() == "moe.yushi:authlibinjector") {
Expand Down