Fix host check

Although the underlying issue is that the host user is not populated.
Not sure whether this should be fixed at all.
This commit is contained in:
Dan Balasescu
2021-11-10 18:36:21 +09:00
parent 71f3a64165
commit c7381b4df0

View File

@ -387,7 +387,7 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer
{
case QueueModes.HostOnly:
AddOrEditPlaylistButton.Text = "Edit beatmap";
AddOrEditPlaylistButton.Alpha = client.Room.Host?.User?.Equals(client.LocalUser?.User) == true ? 1 : 0;
AddOrEditPlaylistButton.Alpha = client.IsHost ? 1 : 0;
break;
case QueueModes.FreeForAll: