Skip to content

Commit

Permalink
Do not resolve with response body
Browse files Browse the repository at this point in the history
  • Loading branch information
holybaechu committed Apr 5, 2024
1 parent 84f825e commit 5affa08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/yggdrasil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export class YggdrasilClient {
serverId: string,
sharedSecret: Buffer,
publicKey: Buffer
) {
): Promise<void> {
return new Promise((resolve) => {
request("https://sessionserver.mojang.com/session/minecraft/join", {
method: "POST",
Expand All @@ -61,7 +61,7 @@ export class YggdrasilClient {
headers: {
"Content-Type": "application/json"
}
}).then(async (res) => resolve(await res.body.json()))
}).then(() => resolve())
})
}
}
Expand Down

0 comments on commit 5affa08

Please sign in to comment.