fix 1.3.1-1.5.2

This commit is contained in:
Tungstend 2023-01-31 17:24:44 +08:00
parent 119907fabd
commit 46e6e2fe0e
1 changed files with 3 additions and 0 deletions

View File

@ -127,6 +127,9 @@ public class DefaultLauncher extends Launcher {
res.addDefault("-Dfml.earlyprogresswindow=", "false");
res.addDefault("-Dlwjgl2.width=", options.getWidth() + "");
res.addDefault("-Dlwjgl2.height=", options.getHeight() + "");
res.addDefault("-Duser.home=", options.getGameDir().getAbsolutePath());
res.addDefault("-Duser.language=", System.getProperty("user.language"));
res.addDefault("-Duser.timezone=", TimeZone.getDefault().getID());
if (getInjectorArg() != null && options.isBeGesture()) {
res.addDefault("-Dfcl.injector=", getInjectorArg());