diff options
-rw-r--r-- | build/mojang.js | 3 | ||||
-rw-r--r-- | src/mojang.ts | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/build/mojang.js b/build/mojang.js index 6ff52b7..dac5789 100644 --- a/build/mojang.js +++ b/build/mojang.js @@ -63,7 +63,8 @@ async function profileFromUsername(username) { console.log('mojang returned', rawData); if (!(data === null || data === void 0 ? void 0 : data.id)) { console.log('mojang api failed, trying ashcon as backup'); - return await profileFromUsernameAlternative(username); + return { uuid: null, username: null }; + // return await profileFromUsernameAlternative(username) } return { uuid: data.id, diff --git a/src/mojang.ts b/src/mojang.ts index 580a2ab..2e88dbd 100644 --- a/src/mojang.ts +++ b/src/mojang.ts @@ -77,7 +77,8 @@ export async function profileFromUsername(username: string): Promise<MojangApiRe if (!data?.id) { console.log('mojang api failed, trying ashcon as backup') - return await profileFromUsernameAlternative(username) + return { uuid: null, username: null } + // return await profileFromUsernameAlternative(username) } return { uuid: data.id, |