From a6d1bb08ffdcbd401af9b93ab9fe642a462419ee Mon Sep 17 00:00:00 2001 From: ck <21735205+cyperdark@users.noreply.github.com> Date: Fri, 19 Jul 2024 10:09:09 +0300 Subject: [PATCH] fix: Add update delay only to tournaments --- packages/tosu/src/entities/MenuData/index.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/tosu/src/entities/MenuData/index.ts b/packages/tosu/src/entities/MenuData/index.ts index 16318351..f61f820a 100644 --- a/packages/tosu/src/entities/MenuData/index.ts +++ b/packages/tosu/src/entities/MenuData/index.ts @@ -72,7 +72,11 @@ export class MenuData extends AbstractEntity { return; } - if (performance.now() - this.mapChangeTime < NEW_MAP_COMMIT_DELAY) { + if ( + performance.now() - this.mapChangeTime < NEW_MAP_COMMIT_DELAY && + (this.osuInstance.isTourneySpectator || + this.osuInstance.isTourneyManager) + ) { return; }