From bbdcf2665d1c76c903de12aa357877ca02df741f Mon Sep 17 00:00:00 2001 From: mat <27899617+mat-1@users.noreply.github.com> Date: Mon, 1 Mar 2021 21:22:19 -0600 Subject: Update hypixelCached.ts --- build/hypixelCached.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'build/hypixelCached.js') diff --git a/build/hypixelCached.js b/build/hypixelCached.js index 00cc828..d41da97 100644 --- a/build/hypixelCached.js +++ b/build/hypixelCached.js @@ -102,7 +102,7 @@ async function uuidFromUser(user) { // check if the username is a value const uuidToUsername = usernameCache.mget(usernameCache.keys()); for (const [uuid, username] of Object.entries(uuidToUsername)) { - if (username.toLowerCase && user.toLowerCase() === username.toLowerCase()) + if (username && username.toLowerCase && user.toLowerCase() === username.toLowerCase()) return uuid; } if (_1.debug) -- cgit