mirror of
https://github.com/artegoser/pimi-launcher-core.git
synced 2025-02-23 04:33:16 +03:00
Hotfix for Quilt, updating clientPackage usage & docs
This commit is contained in:
parent
783536d7bf
commit
63ef1da31e
2 changed files with 4 additions and 5 deletions
|
@ -2,7 +2,7 @@
|
|||
##### This project is complete for now.
|
||||
[](https://travis-ci.com/Pierce01/MinecraftLauncher-core)
|
||||
[](https://opensource.org/licenses/MIT)
|
||||

|
||||

|
||||

|
||||
|
||||
MCLC (Minecraft Launcher Core) is a NodeJS solution for launching modded and vanilla Minecraft without having to download and format everything yourself.
|
||||
|
@ -26,7 +26,6 @@ const { Client, Authenticator } = require('minecraft-launcher-core');
|
|||
const launcher = new Client();
|
||||
|
||||
let opts = {
|
||||
clientPackage: undefined,
|
||||
// For production launchers, I recommend not passing
|
||||
// the getAuth function through the authorization field and instead
|
||||
// handling authentication outside before you initialize
|
||||
|
@ -60,7 +59,7 @@ launcher.on('data', (e) => console.log(e));
|
|||
|
||||
| Parameter | Type | Description | Required |
|
||||
|--------------------------|----------|-------------------------------------------------------------------------------------------|----------|
|
||||
| `options.clientPackage` | String | Path or URL to the client package zip file. Do not rehost Minecraft, it's against ToS. | False |
|
||||
| `options.clientPackage` | String | Path or URL to a zip file, which will be extracted to the root directory. (Not recommended for produnction use)| False |
|
||||
| `options.removePackage` | Boolean | Option to remove the client package zip file after its finished extracting. | False |
|
||||
| `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 |
|
||||
|
|
|
@ -525,8 +525,8 @@ class Handler {
|
|||
libs = libs.concat((await this.downloadToDirectory(libraryDirectory, parsed, 'classes')))
|
||||
counter = 0
|
||||
|
||||
// Sort libs by name because Quilt needs that for some reason
|
||||
libs.sort()
|
||||
// Temp Quilt support
|
||||
if (classJson) libs.sort()
|
||||
|
||||
this.client.emit('debug', '[MCLC]: Collected class paths')
|
||||
return libs
|
||||
|
|
Loading…
Add table
Reference in a new issue