Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed a typo #24

Merged
merged 2 commits into from
Jun 21, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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