diff --git a/src/daemon/fetchPlayerId.ts b/src/daemon/fetchPlayerId.ts index 967357e..7ddcbac 100644 --- a/src/daemon/fetchPlayerId.ts +++ b/src/daemon/fetchPlayerId.ts @@ -5,7 +5,7 @@ export default function fetchPlayerId(): Promise { return new Promise((resolve) => { if (globalData.daemon) { globalData.daemon.getPlayerId().then((d) => { - if (d && d.playerId !== "") { + if (d && d.playerId !== "undefined" && d.playerId !== "") { switchPlayerUUID(d.playerId, d.displayName); resolve(d.playerId); } else {