Added --customLaunchArgs options (#40)

* Added --customLaunchArgs options - #39

* Fixed Typo

Co-authored-by: Pierce <spammermuch@gmail.com>
This commit is contained in:
Corentin Grall 2020-04-07 15:36:06 +02:00 committed by GitHub
parent c35332a8e5
commit 1c6cc01682
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -66,7 +66,8 @@ launcher.on('data', (e) => console.log(e));
| `options.installer` | String | Path to installer being executed. | False |
| `options.root` | String | Path where you want the launcher to work in. like `C:/Users/user/AppData/Roaming/.mc`, | True |
| `options.os` | String | windows, osx or linux. MCLC will auto determine the OS if this field isn't provided. | False |
| `options.customArgs` | Array | Array of custom java arguments you want to add. | False |
| `options.customLaunchArgs`| Array | Array of custom Minecraft arguments you want to add. | False |
| `options.customArgs` | Array | Array of custom Java arguments you want to add. | False |
| `options.version.number` | String | Minecraft version that is going to be launched. | True |
| `options.version.type` | String | Any string. The actual Minecraft launcher uses `release` and `snapshot`. | True |
| `options.version.custom` | String | The name of the folder, jar file, and version json in the version folder. | False |

View file

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