Allow -Duser.language to be overriden

Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
(cherry picked from commit 6bbbfa06d1)
This commit is contained in:
TheKodeToad 2026-02-12 22:18:42 +00:00 committed by github-actions[bot]
parent 4ff026560a
commit 568b30d914

View file

@ -566,6 +566,8 @@ QStringList MinecraftInstance::javaArguments()
{
QStringList args;
args << "-Duser.language=en";
// custom args go first. we want to override them if we have our own here.
args.append(extraArguments());
@ -619,8 +621,6 @@ QStringList MinecraftInstance::javaArguments()
}
}
args << "-Duser.language=en";
if (javaVersion.isModular() && shouldApplyOnlineFixes())
// allow reflective access to java.net - required by the skin fix
args << "--add-opens" << "java.base/java.net=ALL-UNNAMED";