Fix IMod now using reference equality as well

This commit is contained in:
Salman Ahmed
2020-12-28 15:19:28 +03:00
parent 43f8f3638a
commit 5efcdbd431
4 changed files with 8 additions and 4 deletions

View File

@ -52,7 +52,8 @@ namespace osu.Game.Online.API
return resultMod;
}
public bool Equals(APIMod other) => Acronym == other?.Acronym;
public bool Equals(IMod other) => other is APIMod them && Equals(them);
public bool Equals(APIMod other) => ((IMod)this).Equals(other);
public override string ToString()
{