updatePlayerList log fix

This commit is contained in:
Skillet 2023-12-26 02:36:53 -05:00
parent a533ff6ac6
commit 967bfe2091

View File

@ -750,7 +750,7 @@ export default class SquadServer extends EventEmitter {
let matches;
if (!forceUpdate) {
Logger.verbose('updatePlayerList', 1, `trying to get condition ${JSON.stringify(condition)}`);
Logger.verbose('updatePlayerList', 1, `trying to get condition ${condition.toString()}`);
matches = this.players.filter(condition);
if (matches.length === 1) return matches[0];
Logger.verbose('updatePlayerList', 1, `ERROR: failed to find player ${JSON.stringify(condition)}, matches found: ${matches.length}`);