mirror of
https://github.com/ppy/osu.git
synced 2026-05-24 01:14:51 +08:00
Fix broken equality comparer
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user