From f732c44265bf768acb2ef902e922ea59325ff7a7 Mon Sep 17 00:00:00 2001 From: smoogipoo Date: Fri, 29 Oct 2021 16:23:10 +0900 Subject: [PATCH] Fix broken equality comparer --- osu.Game/Online/Rooms/PlaylistItem.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/osu.Game/Online/Rooms/PlaylistItem.cs b/osu.Game/Online/Rooms/PlaylistItem.cs index 7fcce1514d..e2a47ed744 100644 --- a/osu.Game/Online/Rooms/PlaylistItem.cs +++ b/osu.Game/Online/Rooms/PlaylistItem.cs @@ -96,6 +96,12 @@ namespace osu.Game.Online.Rooms public bool ShouldSerializeID() => false; public bool ShouldSerializeapiBeatmap() => false; - public bool Equals(PlaylistItem other) => ID == other?.ID && BeatmapID == other.BeatmapID && RulesetID == other.RulesetID; + public bool Equals(PlaylistItem other) + => ID == other?.ID + && BeatmapID == other.BeatmapID + && RulesetID == other.RulesetID + && Expired == other.Expired + && allowedMods.SequenceEqual(other.allowedMods) + && requiredMods.SequenceEqual(other.requiredMods); } }