mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 10:52:53 +08:00
Fix migration logic overwriting existing components in ruleset targets
This commit is contained in:
parent
78e0126f16
commit
fc2202e0cc
@ -84,7 +84,11 @@ namespace osu.Game.Skinning
|
||||
resources.RealmAccess.Run(r =>
|
||||
{
|
||||
foreach (var ruleset in r.All<RulesetInfo>())
|
||||
hudLayout.Update(ruleset, comboCounters);
|
||||
{
|
||||
hudLayout.Update(ruleset, hudLayout.TryGetDrawableInfo(ruleset, out var rulesetComponents)
|
||||
? rulesetComponents.Concat(comboCounters).ToArray()
|
||||
: comboCounters);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
@ -71,7 +71,11 @@ namespace osu.Game.Skinning
|
||||
resources.RealmAccess.Run(r =>
|
||||
{
|
||||
foreach (var ruleset in r.All<RulesetInfo>())
|
||||
hudLayout.Update(ruleset, comboCounters);
|
||||
{
|
||||
hudLayout.Update(ruleset, hudLayout.TryGetDrawableInfo(ruleset, out var rulesetComponents)
|
||||
? rulesetComponents.Concat(comboCounters).ToArray()
|
||||
: comboCounters);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user