From 3980e35d13967ca6ff91d9bc42a5219f3d74b114 Mon Sep 17 00:00:00 2001 From: zhl Date: Tue, 16 Mar 2021 14:23:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E6=88=BF=E9=97=B4=E4=BA=BA?= =?UTF-8?q?=E6=95=B0=E6=98=AF=E5=90=A6=E5=B7=B2=E6=BB=A1=E5=88=A4=E6=96=AD?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/rooms/commands/OnJoinCommand.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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