From ab8b9654a35adfaf627ffb451e99a9be6bc0a901 Mon Sep 17 00:00:00 2001 From: a squid <34890855+squi-ddy@users.noreply.github.com> Date: Mon, 22 Jan 2024 15:35:08 +0800 Subject: [PATCH] stop admin from counting as player --- server/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/index.ts b/server/src/index.ts index e14fc64..3bdda33 100755 --- a/server/src/index.ts +++ b/server/src/index.ts @@ -164,7 +164,7 @@ io.on("connection", (socket) => { console.log("Connected", socket.data.group); - playersPerGroup[socket.data.group] += 1; + if (unique_name !== "admin") playersPerGroup[socket.data.group] += 1; console.log("players per group", playersPerGroup); if (gameStatus == 'waiting') {