diff options
Diffstat (limited to 'build/hypixelApi.js')
-rw-r--r-- | build/hypixelApi.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/build/hypixelApi.js b/build/hypixelApi.js index ccae09b..9f54ef2 100644 --- a/build/hypixelApi.js +++ b/build/hypixelApi.js @@ -36,7 +36,7 @@ function chooseApiKey() { if (Date.now() > keyUsage.reset) keyUsage.remaining = keyUsage.limit; // if this key has more uses remaining than the current known best one, save it - if (!bestKeyUsage || keyUsage.remaining > bestKeyUsage.remaining) { + if (bestKeyUsage === null || keyUsage.remaining > bestKeyUsage.remaining) { bestKeyUsage = keyUsage; bestKey = key; } |