Explorar o código

Fixing classpath argument for Unix-like systems (macOS, Linux).

Game should now launch on these two systems.
Daniel Scalzi %!s(int64=7) %!d(string=hai) anos
pai
achega
2f899822b5
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/assets/js/processbuilder.js

+ 1 - 1
app/assets/js/processbuilder.js

@@ -113,7 +113,7 @@ class ProcessBuilder {
         '-Xms' + ConfigManager.getMinRAM(),,
         '-Djava.library.path=' + tempNativePath,
         '-cp',
-        this.classpathArg(mods, tempNativePath).join(';'),
+        this.classpathArg(mods, tempNativePath).join(process.platform === 'win32' ? ';' : ':'),
         this.forgeData.mainClass]
 
         // For some reason this will add an undefined value unless