mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 14:12:55 +08:00
Disallow local user mod customisation
This commit is contained in:
parent
89a42d60fb
commit
ee92ec0a5c
@ -216,7 +216,7 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer
|
||||
Origin = Anchor.BottomLeft,
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
Height = 0.5f,
|
||||
Child = userModsSelectOverlay = new SoloModSelectOverlay
|
||||
Child = userModsSelectOverlay = new UserModSelectOverlay
|
||||
{
|
||||
SelectedMods = { BindTarget = UserMods },
|
||||
IsValidMod = _ => false
|
||||
@ -358,5 +358,10 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer
|
||||
if (client != null)
|
||||
client.LoadRequested -= onLoadRequested;
|
||||
}
|
||||
|
||||
private class UserModSelectOverlay : ModSelectOverlay
|
||||
{
|
||||
protected override bool AllowCustomisation => false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user