From 1ffa06b5a8f425949090026c9743d838b4e3ed3e Mon Sep 17 00:00:00 2001 From: PilkeySEK Date: Sat, 1 Mar 2025 09:12:43 +0100 Subject: [PATCH] dont send the non-flag to the server --- src/client/Main.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/client/Main.ts b/src/client/Main.ts index ed24a6ff8..8804a0d65 100644 --- a/src/client/Main.ts +++ b/src/client/Main.ts @@ -143,7 +143,10 @@ class Client { this.gameStop = joinLobby( { gameType: gameType, - flag: (): string => this.flagInput.getCurrentFlag(), + flag: (): string => + this.flagInput.getCurrentFlag() == "xx" + ? "" + : this.flagInput.getCurrentFlag(), playerName: (): string => this.usernameInput.getCurrentUsername(), gameID: lobby.id, persistentID: getPersistentIDFromCookie(),