- [Default JVM args] Set user.home to fix crash of mods or hacked clients.
- [Mod installer] fix
This commit is contained in:
khanhduytran0 2020-11-06 20:24:36 +07:00
parent 21e0c01a63
commit 7ef8526c91
2 changed files with 5 additions and 5 deletions

View file

@ -128,6 +128,7 @@ public final class Tools
overrideableArgList.add("-Djava.home=" + Tools.homeJreDir);
overrideableArgList.add("-Djava.io.tmpdir=" + ctx.getCacheDir().getAbsolutePath());
// overrideableArgList.add("-Djava.library.path=" + JREUtils.LD_LIBRARY_PATH);
overrideableArgList.add("-Duser.home=" + new File(Tools.MAIN_PATH).getParent());
// Should be compatible?
// overrideableArgList.add("-Dos.name=Android");