fix: point -Duser to the right directory to prevent crashes
This commit is contained in:
1 parent
3dd384c5c6
commit
68d2f45236
1 file changed
+1
@@ -178,6 +178,7 @@ pub async fn run_neoforge_installer(
|
|||||||
set_action("Running NeoForge installer...");
|
set_action("Running NeoForge installer...");
|
||||||
|
|
||||||
let output = match Command::new(java_path)
|
let output = match Command::new(java_path)
|
||||||
|
.arg(format!("-Duser.home={}", instance_dir.display()))
|
||||||
.arg("-jar")
|
.arg("-jar")
|
||||||
.arg(installer_path)
|
.arg(installer_path)
|
||||||
.arg("--installClient")
|
.arg("--installClient")
|
||||||
|
|||||||
Reference in new issue
Block a user