mirror of
https://github.com/osukey/osukey.git
synced 2025-05-21 21:47:31 +09:00
Fix broken equality comparer
This commit is contained in:
parent
e667ef4eea
commit
f732c44265
@ -96,6 +96,12 @@ namespace osu.Game.Online.Rooms
|
|||||||
public bool ShouldSerializeID() => false;
|
public bool ShouldSerializeID() => false;
|
||||||
public bool ShouldSerializeapiBeatmap() => 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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user