aboutsummaryrefslogtreecommitdiff
path: root/build/mojang.js
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2021-06-03 15:11:32 -0500
committermat <github@matdoes.dev>2021-06-03 15:11:32 -0500
commit7caf789818a3463df27e441a8c5dd5a47798ac81 (patch)
tree25df1c7dc574ccd5d71d1b54ae78f788496b536b /build/mojang.js
parentb69726c8a1d59a1f1bcb891fb943f7252b31044c (diff)
downloadskyblock-api-7caf789818a3463df27e441a8c5dd5a47798ac81.tar.gz
skyblock-api-7caf789818a3463df27e441a8c5dd5a47798ac81.tar.bz2
skyblock-api-7caf789818a3463df27e441a8c5dd5a47798ac81.zip
maybe fix error
Diffstat (limited to 'build/mojang.js')
-rw-r--r--build/mojang.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/build/mojang.js b/build/mojang.js
index 1c301da..b740c5a 100644
--- a/build/mojang.js
+++ b/build/mojang.js
@@ -87,6 +87,8 @@ async function profileFromUsernameAlternative(username) {
catch {
return { uuid: null, username: null };
}
+ if (!data.uuid)
+ return { uuid: null, username: null };
return {
uuid: util_1.undashUuid(data.uuid),
username: data.username