mirror of
https://github.com/dscalzi/HeliosLauncher.git
synced 2024-12-22 11:42:14 -08:00
Fixed old bug with argument splicing in processbuilder.
This commit is contained in:
parent
9448b9b5a3
commit
6e8d4fe9bc
@ -110,7 +110,7 @@ class ProcessBuilder {
|
|||||||
constructJVMArguments(mods, tempNativePath){
|
constructJVMArguments(mods, tempNativePath){
|
||||||
|
|
||||||
let args = ['-Xmx' + ConfigManager.getMaxRAM(),
|
let args = ['-Xmx' + ConfigManager.getMaxRAM(),
|
||||||
'-Xms' + ConfigManager.getMinRAM(),,
|
'-Xms' + ConfigManager.getMinRAM(),
|
||||||
'-Djava.library.path=' + tempNativePath,
|
'-Djava.library.path=' + tempNativePath,
|
||||||
'-cp',
|
'-cp',
|
||||||
this.classpathArg(mods, tempNativePath).join(process.platform === 'win32' ? ';' : ':'),
|
this.classpathArg(mods, tempNativePath).join(process.platform === 'win32' ? ';' : ':'),
|
||||||
@ -121,10 +121,7 @@ class ProcessBuilder {
|
|||||||
args.unshift('-Xdock:icon=' + path.join(__dirname, '..', 'images', 'minecraft.icns'))
|
args.unshift('-Xdock:icon=' + path.join(__dirname, '..', 'images', 'minecraft.icns'))
|
||||||
}
|
}
|
||||||
|
|
||||||
// For some reason this will add an undefined value unless
|
args.splice(2, 0, ...ConfigManager.getJVMOptions())
|
||||||
// the delete count is 1. I suspect this is unintended behavior
|
|
||||||
// by the function.. need to keep an eye on this.
|
|
||||||
args.splice(2, 1, ...ConfigManager.getJVMOptions())
|
|
||||||
|
|
||||||
args = args.concat(this._resolveForgeArgs())
|
args = args.concat(this._resolveForgeArgs())
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user