From 6ca2d6c0ac599a975c946ff9ef724e4558406534 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kuzey=20Kurtulu=C5=9F?= <46726434+kuzeeeyk@users.noreply.github.com> Date: Tue, 21 Jun 2022 03:04:27 +0300 Subject: [PATCH 1/2] Fixed a typo --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 118ca11..e2c6f4c 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ const auth = new msmc.auth(); //Spawn a new auth object using mojang's token auth.on('load', console.log) //read load events into the console try{ - const xbx = await auth.luanch('raw')//In the example we use raw, but you can replace the word raw with electron or nwjs if you're using either of the two + const xbx = await auth.launch('raw')//In the example we use raw, but you can replace the word raw with electron or nwjs if you're using either of the two const mc = await xbx.getMinecraft()//Lets get the information we need to launch minecraft // Pulled from the Minecraft Launcher core docs. @@ -440,4 +440,4 @@ This function will take errors thrown by msmc and wrap them up for you. The mess Simply run in the root directory. ```bash npm run build -``` \ No newline at end of file +``` From ca51e1cd1dd1bc80fd4e2dc19344997eeb198e8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kuzey=20Kurtulu=C5=9F?= <46726434+kuzeeeyk@users.noreply.github.com> Date: Tue, 21 Jun 2022 03:15:00 +0300 Subject: [PATCH 2/2] Fixed a typo (luanch to launch) --- src/auth/auth.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/auth/auth.ts b/src/auth/auth.ts index 9dadc4b..d56a8c1 100644 --- a/src/auth/auth.ts +++ b/src/auth/auth.ts @@ -112,7 +112,7 @@ export class auth extends EventEmitter { return this._get(body) } - async luanch(framework: framework, windowProperties?: windowProperties) { + async launch(framework: framework, windowProperties?: windowProperties) { switch (framework) { case "raw": return await this.login(await (require("../gui/raw.js")).default(this, windowProperties))