mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 16:52:54 +08:00
Update pointless CompareTo
implementation
This commit is contained in:
parent
7af23328a4
commit
33b7bdcf82
@ -42,7 +42,7 @@ namespace osu.Game.Rulesets
|
||||
|
||||
public bool Equals(EFRulesetInfo other) => other != null && ID == other.ID && Available == other.Available && Name == other.Name && InstantiationInfo == other.InstantiationInfo;
|
||||
|
||||
public int CompareTo(RulesetInfo other) => ID?.CompareTo(other.ID) ?? -1;
|
||||
public int CompareTo(RulesetInfo other) => OnlineID.CompareTo(other.OnlineID);
|
||||
|
||||
public override bool Equals(object obj) => obj is EFRulesetInfo rulesetInfo && Equals(rulesetInfo);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user