Skip to content

Commit

Permalink
Update index.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
squi-ddy authored Jan 22, 2024
1 parent ab8b965 commit 1d025d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ io.on("connection", (socket) => {
return
}
console.log("Disconnected", socket.data.group);
playersPerGroup[socket.data.group] -= 1;
if (socket.data.email !== "admin") playersPerGroup[socket.data.group] -= 1;
console.log("players per group", playersPerGroup);
// Maybe not enough players for game?
if (gameResetTimer?.running()) {
Expand Down

0 comments on commit 1d025d2

Please sign in to comment.