From 3fca25f421a48176573cd3b60e2d19ac362c8778 Mon Sep 17 00:00:00 2001 From: FloPinguin <25036848+FloPinguin@users.noreply.github.com> Date: Sat, 7 Mar 2026 05:02:03 +0100 Subject: [PATCH] =?UTF-8?q?Skip=20multi-tab=20detection=20during=20replays?= =?UTF-8?q?=20=F0=9F=9B=A0=EF=B8=8F=20(#3366)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Description: Multi-tab detection was incorrectly penalizing users watching replays. Added `isReplay()` check to `MultiTabModal.tick()` so the detector is never initialized when viewing a replay. ## Please complete the following: - [X] I have added screenshots for all UI updates - [X] I process any text displayed to the user through translateText() and I've added it to the en.json file - [X] I have added relevant tests to the test directory - [X] I confirm I have thoroughly tested these changes and take full responsibility for any bugs introduced ## Please put your Discord username so you can be contacted if a bug or regression is found: FloPinguin --- src/client/graphics/layers/MultiTabModal.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/client/graphics/layers/MultiTabModal.ts b/src/client/graphics/layers/MultiTabModal.ts index 868462cfb..210752bd9 100644 --- a/src/client/graphics/layers/MultiTabModal.ts +++ b/src/client/graphics/layers/MultiTabModal.ts @@ -31,7 +31,8 @@ export class MultiTabModal extends LitElement implements Layer { if ( this.game.inSpawnPhase() || this.game.config().gameConfig().gameType === GameType.Singleplayer || - this.game.config().serverConfig().env() === GameEnv.Dev + this.game.config().serverConfig().env() === GameEnv.Dev || + this.game.config().isReplay() ) { return; }