From 1c6cc01682c1030978875faaaf1d2c5c5b0c4d69 Mon Sep 17 00:00:00 2001 From: Corentin Grall Date: Tue, 7 Apr 2020 15:36:06 +0200 Subject: [PATCH] Added --customLaunchArgs options (#40) * Added --customLaunchArgs options - #39 * Fixed Typo Co-authored-by: Pierce --- README.md | 3 ++- components/handler.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 623a440..adefc2a 100644 --- a/README.md +++ b/README.md @@ -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 | diff --git a/components/handler.js b/components/handler.js index 7b53686..793e46f 100644 --- a/components/handler.js +++ b/components/handler.js @@ -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); });