1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 03:22:55 +08:00

Update MultiplayerModSelectOverlay.cs

This commit is contained in:
Givikap120 2024-02-18 03:34:02 +02:00
parent a6b63efe7d
commit 24171bd02b

View File

@ -51,7 +51,7 @@ namespace osu.Game.Overlays.Mods
RankingInformationDisplay.Ranked.Value = SelectedMods.Value.All(m => m.Ranked);
if (multiplayerRoomItem != null && multiplayerRoomItem.Value != null)
if (multiplayerRoomItem?.Value != null)
{
Ruleset ruleset = game.Ruleset.Value.CreateInstance();
var multiplayerRoomMods = multiplayerRoomItem.Value.RequiredMods.Select(m => m.ToMod(ruleset));
@ -68,11 +68,6 @@ namespace osu.Game.Overlays.Mods
public partial class MultiplayerBeatmapAttributesDisplay : BeatmapAttributesDisplay
{
public MultiplayerBeatmapAttributesDisplay()
: base()
{
}
[Resolved(CanBeNull = true)]
private IBindable<PlaylistItem>? multiplayerRoomItem { get; set; }