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); });