aboutsummaryrefslogtreecommitdiff
path: root/build/cleaners/player.js
diff options
context:
space:
mode:
Diffstat (limited to 'build/cleaners/player.js')
-rw-r--r--build/cleaners/player.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/build/cleaners/player.js b/build/cleaners/player.js
index a767d7e..4957e7a 100644
--- a/build/cleaners/player.js
+++ b/build/cleaners/player.js
@@ -8,6 +8,8 @@ const util_1 = require("../util");
async function cleanPlayerResponse(data) {
var _a, _b;
// Cleans up a 'player' api response
+ if (!data)
+ return; // bruh
return {
uuid: util_1.undashUuid(data.uuid),
username: data.displayname,