Allow -Duser.language to be overriden (#5017)

This commit is contained in:
Alexandru Ionut Tripon 2026-02-13 06:33:37 +00:00 committed by GitHub
commit e6f2d824ab
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -568,6 +568,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());
@ -621,8 +623,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";