From 89e35fd2ba5deabcfb72752c31830aa743b58c3c Mon Sep 17 00:00:00 2001 From: nathomp3 Date: Wed, 2 Feb 2022 20:18:47 -0500 Subject: [PATCH] Fixed crash on non-existant mojang account --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index d0ba45c..681d15b 100644 --- a/index.js +++ b/index.js @@ -135,7 +135,7 @@ exports.fetch = async function limitFetch(text) { exports.fetchMojang = async function limitMojangFetch(text) { let data; - await mojangLimiter.removePoints(1).then(data = await fetch(text).then(response => response.json())).catch( reason => {}); + await mojangLimiter.removePoints(1).then(data = await fetch(text).then(response => response.json()).catch( reason => {})); return data; }