mirror of
https://github.com/ppy/osu.git
synced 2025-03-16 05:37:19 +08:00
Fix wrong checks..
This commit is contained in:
parent
5efcdbd431
commit
41b79d938b
@ -53,7 +53,7 @@ namespace osu.Game.Online.API
|
||||
}
|
||||
|
||||
public bool Equals(IMod other) => other is APIMod them && Equals(them);
|
||||
public bool Equals(APIMod other) => ((IMod)this).Equals(other);
|
||||
public bool Equals(APIMod other) => Acronym == other?.Acronym;
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
|
@ -150,6 +150,6 @@ namespace osu.Game.Rulesets.Mods
|
||||
}
|
||||
|
||||
public bool Equals(IMod other) => other is Mod them && Equals(them);
|
||||
public bool Equals(Mod other) => Acronym == other?.Acronym;
|
||||
public bool Equals(Mod other) => GetType() == other?.GetType();
|
||||
}
|
||||
}
|
||||
|
@ -257,7 +257,7 @@ namespace osu.Game.Scoring
|
||||
public string Acronym { get; set; }
|
||||
|
||||
bool IEquatable<IMod>.Equals(IMod other) => other is DeserializedMod them && Equals(them);
|
||||
public bool Equals(DeserializedMod other) => ((IMod)this).Equals(other);
|
||||
public bool Equals(DeserializedMod other) => Acronym == other?.Acronym;
|
||||
}
|
||||
|
||||
public override string ToString() => $"{User} playing {Beatmap}";
|
||||
|
Loading…
x
Reference in New Issue
Block a user