Skip to content

Commit

Permalink
Fixed crash on non-existant mojang account
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick-NCSU committed Feb 3, 2022
1 parent 76f1bf9 commit 89e35fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ exports.fetch = async function limitFetch(text) {

exports.fetchMojang = async function limitMojangFetch(text) {
let data;
await mojangLimiter.removePoints(1).then(data = await fetch(text).then(response => response.json())).catch( reason => {});
await mojangLimiter.removePoints(1).then(data = await fetch(text).then(response => response.json()).catch( reason => {}));
return data;
}

Expand Down

0 comments on commit 89e35fd

Please sign in to comment.