diff options
Diffstat (limited to 'build')
-rw-r--r-- | build/mojang.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/build/mojang.js b/build/mojang.js index aa60b57..7994cee 100644 --- a/build/mojang.js +++ b/build/mojang.js @@ -59,7 +59,7 @@ async function profileFromUsername(username) { data = await fetchResponse.json(); } catch { } - if (!data.id) { + if (!(data === null || data === void 0 ? void 0 : data.id)) { console.log('mojang api failed, trying ashcon as backup'); return await profileFromUsernameAlternative(username); } |