Disable APIMod/Mod cross equality support

This commit is contained in:
Dean Herbert
2021-09-10 11:22:08 +09:00
parent cf633973a9
commit 76e877f160
2 changed files with 27 additions and 11 deletions

View File

@ -16,7 +16,7 @@ using osu.Game.Utils;
namespace osu.Game.Online.API
{
[MessagePackObject]
public class APIMod
public class APIMod : IEquatable<APIMod>
{
[JsonProperty("acronym")]
[Key(0)]
@ -72,8 +72,7 @@ namespace osu.Game.Online.API
if (ReferenceEquals(null, other)) return false;
if (ReferenceEquals(this, other)) return true;
return Acronym == other.Acronym &&
Settings.SequenceEqual(other.Settings, ModSettingsEqualityComparer.Default);
return Acronym == other.Acronym && Settings.SequenceEqual(other.Settings, ModSettingsEqualityComparer.Default);
}
public override string ToString()