mirror of
https://github.com/ppy/osu.git
synced 2024-11-13 20:47:26 +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