Skip to content

Commit

Permalink
Merge pull request #24 from kuzeeeyk/patch-1
Browse files Browse the repository at this point in the history
Fixed a typo
  • Loading branch information
Hanro50 authored Jun 21, 2022
2 parents e3cec9d + ca51e1c commit 62e3dd9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
```
```
2 changes: 1 addition & 1 deletion src/auth/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 62e3dd9

Please sign in to comment.