mirror of
https://github.com/ppy/osu.git
synced 2025-02-14 21:23:19 +08:00
Merge pull request #16291 from peppy/fix-mods-mutated-outside-lease
Fix `MultiplayerMatchSubScreen` mutating mods outside of bindable lease
This commit is contained in:
commit
bf328dc9e0
@ -381,7 +381,7 @@ namespace osu.Game.Screens.OnlinePlay.Match
|
||||
|
||||
protected virtual void UpdateMods()
|
||||
{
|
||||
if (SelectedItem.Value == null)
|
||||
if (SelectedItem.Value == null || !this.IsCurrentScreen())
|
||||
return;
|
||||
|
||||
Mods.Value = UserMods.Value.Concat(SelectedItem.Value.RequiredMods).ToList();
|
||||
|
@ -241,7 +241,7 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer
|
||||
|
||||
protected override void UpdateMods()
|
||||
{
|
||||
if (SelectedItem.Value == null || client.LocalUser == null)
|
||||
if (SelectedItem.Value == null || client.LocalUser == null || !this.IsCurrentScreen())
|
||||
return;
|
||||
|
||||
// update local mods based on room's reported status for the local user (omitting the base call implementation).
|
||||
|
Loading…
Reference in New Issue
Block a user