1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-17 16:13:33 +08:00

Fix multiplayer enabled mods check

This commit is contained in:
Jamie Taylor
2019-02-28 14:58:44 +09:00
Unverified
parent 53865c6857
commit cf2feec7df
@@ -4,6 +4,7 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Threading;
using osu.Framework.Allocation;
using osu.Framework.Bindables;
@@ -60,7 +61,7 @@ namespace osu.Game.Screens.Multi.Play
if (ruleset.Value.ID != playlistItem.Ruleset.ID)
throw new InvalidOperationException("Current Ruleset does not match PlaylistItem's Ruleset");
if (!CurrentMods.Value.Equals(playlistItem.RequiredMods))
if (!playlistItem.RequiredMods.All(m => CurrentMods.Value.Contains(m)))
throw new InvalidOperationException("Current Mods do not match PlaylistItem's RequiredMods");
var req = new CreateRoomScoreRequest(roomId.Value ?? 0, playlistItem.ID);