diff --git a/src/rooms/commands/OnJoinCommand.ts b/src/rooms/commands/OnJoinCommand.ts index ab221dd..a9c5810 100644 --- a/src/rooms/commands/OnJoinCommand.ts +++ b/src/rooms/commands/OnJoinCommand.ts @@ -20,7 +20,7 @@ export class OnJoinCommand extends Command { async execute({ client, accountId, seat, score } = this.payload) { const count = this.room.clientCount - if (count >= this.room.maxClients) { + if (count > this.room.maxClients) { return } // begin of set seat and team