Skip to content

Commit

Permalink
fix: Add update delay only to tournaments
Browse files Browse the repository at this point in the history
  • Loading branch information
cyperdark committed Jul 19, 2024
1 parent da10858 commit a6d1bb0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/tosu/src/entities/MenuData/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit a6d1bb0

Please sign in to comment.