Merge pull request #41 from grallc/custom-lauch-args-fix

Fixed custom launch args builder - #39
This commit is contained in:
Pierce 2020-05-01 16:53:49 -04:00 committed by GitHub
commit 9e21e8189c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -513,7 +513,7 @@ class Handler {
'--proxyPass',
this.options.proxy.password
);
if(this.options.customLaunchArgs) args.concat(this.options.customLaunchArgs)
if(this.options.customLaunchArgs) this.options.customLaunchArgs.forEach(customArg => args = args.concat(customArg.split(' ')))
this.client.emit('debug', '[MCLC]: Set launch options');
resolve(args);
});