mirror of
https://github.com/artegoser/pimi-launcher-core.git
synced 2024-11-22 04:06:21 +03:00
refactors and updates
This commit is contained in:
parent
e5e1d68883
commit
d521ecee31
3 changed files with 5 additions and 6 deletions
|
@ -36,8 +36,8 @@ const launcher = new Client();
|
|||
launcher.launch(opts);
|
||||
|
||||
launcher.on('debug', (e) => console.log(e));
|
||||
launcher.on('data', (e) => console.log(e));
|
||||
launcher.on('error', (e) => console.log(e));
|
||||
launcher.on('data', (e) => console.log(e.toString('utf-8')));
|
||||
launcher.on('error', (e) => console.log(e.toString('utf-8')));
|
||||
```
|
||||
### Documentation
|
||||
|
||||
|
@ -56,6 +56,7 @@ launcher.on('error', (e) => console.log(e));
|
|||
| `options.os` | String | windows, osx or linux. MCLC with auto determine the OS if this field isn't provided. | 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. | True |
|
||||
| `options.memory.max` | String | Max amount of memory being used by Minectaft. | True |
|
||||
| `options.memory.min` | String | Min amount of memory being used by Minectaft. | True |
|
||||
| `options.forge` | String | Path to Universal Forge Jar. | False |
|
||||
|
|
|
@ -369,9 +369,7 @@ class Handler {
|
|||
switch(process.platform) {
|
||||
case "win32": return "windows";
|
||||
case "darwin": return "osx";
|
||||
case "freebsd": return "linux";
|
||||
case "sunos": return "linux";
|
||||
default: throw Error("[MCLC Error] Couldn't set OS specific JVM argument!")
|
||||
default: return "linux";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "minecraft-launcher-core",
|
||||
"version": "3.5.0",
|
||||
"version": "3.5.1",
|
||||
"description": "Lightweight module that downloads and runs Minecraft using javascript / NodeJS",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
|
|
Loading…
Add table
Reference in a new issue