From 40d895095fcc035aa2e247a06dc3771fff252b6e Mon Sep 17 00:00:00 2001 From: modmuss50 Date: Tue, 22 Oct 2019 20:09:59 +0100 Subject: [PATCH] Surround natives path in quotes to ensure it works with usernames with spaces. --- src/main/java/net/fabricmc/loom/util/RunConfig.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/fabricmc/loom/util/RunConfig.java b/src/main/java/net/fabricmc/loom/util/RunConfig.java index 3935209..c26f8d0 100644 --- a/src/main/java/net/fabricmc/loom/util/RunConfig.java +++ b/src/main/java/net/fabricmc/loom/util/RunConfig.java @@ -90,7 +90,7 @@ public class RunConfig { private static void populate(Project project, LoomGradleExtension extension, RunConfig runConfig, String mode) { runConfig.projectName = project.getName(); runConfig.runDir = "file://$PROJECT_DIR$/" + extension.runDir; - runConfig.vmArgs = "-Dfabric.development=true -Djava.library.path=" + extension.getNativesDirectory().getAbsolutePath(); + runConfig.vmArgs = "-Dfabric.development=true -Djava.library.path=\"" + extension.getNativesDirectory().getAbsolutePath() + "\""; switch (extension.getLoaderLaunchMethod()) { case "launchwrapper":