mirror of
https://github.com/artegoser/pimi-launcher-core.git
synced 2024-11-22 12:16:21 +03:00
Version bump, warnings, code refactor!
This commit is contained in:
parent
69a754721f
commit
d83aadc4c3
3 changed files with 4 additions and 4 deletions
|
@ -20,6 +20,8 @@ const launcher = new Client();
|
|||
|
||||
let opts = {
|
||||
clientPackage: null,
|
||||
// For production launchers, I recommend not passing the getAuth function through the authorization field and instead
|
||||
// handling authentication outside before you initialize MCLC so you can handle auth based errors and validation!
|
||||
authorization: Authenticator.getAuth("username", "password"),
|
||||
root: "./minecraft",
|
||||
os: "windows",
|
||||
|
|
|
@ -417,9 +417,7 @@ class Handler {
|
|||
const minArgs = this.options.overrides.minArgs || 5;
|
||||
if(args.length < minArgs) args = args.concat(this.version.minecraftArguments ? this.version.minecraftArguments.split(' ') : this.version.arguments.game);
|
||||
|
||||
if({}.toString.call(this.options.authorization) === "[object Promise]") {
|
||||
this.options.authorization = await this.options.authorization;
|
||||
}
|
||||
this.options.authorization = await Promise.resolve(this.options.authorization);
|
||||
|
||||
const fields = {
|
||||
'${auth_access_token}': this.options.authorization.access_token,
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "minecraft-launcher-core",
|
||||
"version": "3.10.0",
|
||||
"version": "3.10.1",
|
||||
"description": "Lightweight module that downloads and runs Minecraft using javascript / NodeJS",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
|
|
Loading…
Add table
Reference in a new issue