Consider mod equality in difficulty cache lookup rather than acronym

This commit is contained in:
Salman Ahmed 2021-08-17 04:27:43 +03:00
parent 060ba0692d
commit 0291cd5ae2
1 changed files with 2 additions and 2 deletions

View File

@ -297,7 +297,7 @@ public DifficultyCacheLookup([NotNull] BeatmapInfo beatmap, [CanBeNull] RulesetI
public bool Equals(DifficultyCacheLookup other)
=> Beatmap.ID == other.Beatmap.ID
&& Ruleset.ID == other.Ruleset.ID
&& OrderedMods.Select(m => m.Acronym).SequenceEqual(other.OrderedMods.Select(m => m.Acronym));
&& OrderedMods.SequenceEqual(other.OrderedMods);
public override int GetHashCode()
{
@ -307,7 +307,7 @@ public override int GetHashCode()
hashCode.Add(Ruleset.ID);
foreach (var mod in OrderedMods)
hashCode.Add(mod.Acronym);
hashCode.Add(mod);
return hashCode.ToHashCode();
}