support windows for the path separator

This commit is contained in:
shedaniel
2020-12-20 23:37:27 +08:00
parent 07f252d70e
commit 67bc2f66c4

View File

@@ -158,7 +158,7 @@ public class RunConfig {
StreamSupport.stream(main.getOutput().getClassesDirs().spliterator(), false)
.map(File::getAbsolutePath)
).map(s -> "loom%%" + s)
.collect(Collectors.joining(":"));
.collect(Collectors.joining(File.pathSeparator));
runConfig.envVariables.put("MOD_CLASSES", modClasses);
}