From c488d1e7274c033c6a5170f3f6b68275e0fcebb1 Mon Sep 17 00:00:00 2001 From: GericFo <52211274+gericfo@users.noreply.github.com> Date: Wed, 20 Sep 2023 09:31:52 +0200 Subject: [PATCH] Script upload --- src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index 2737030d..438d516f 100644 --- a/src/main.ts +++ b/src/main.ts @@ -80,7 +80,7 @@ function updateMap() { for (const player of players) { const buttonPressed = player.state.buttonPressed; // Workaround for Typescript type narrowing bug with "buttonPressed in buttons" - if (typeof buttonPressed === 'string' && (buttonPressed === "button1" || buttonPressed === "button2" || buttonPressed === "button3" || buttonPressed === "button4" || buttonPressed === "button5" || buttonPressed === "button6" || buttonPressed === "button7" || buttonPressed === "button8")) { + if (typeof buttonPressed === 'string' && (buttonPressed === "button1" || buttonPressed === "button2" || buttonPressed === "button3" || buttonPressed === "button4")) { buttons[buttonPressed].pressed = true; if (buttons[buttonPressed].color === 'red') { nbRedPressed++;