Move yaml removals to the end of the merge.
This commit is contained in:
committed by
Oliver Brakmann
parent
a074bb1d4b
commit
c7249e6fa6
@@ -97,8 +97,11 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
||||
// Add a group for each campaign
|
||||
if (Game.ModData.Manifest.Missions.Any())
|
||||
{
|
||||
var yaml = Game.ModData.Manifest.Missions.Select(MiniYaml.FromFile).Aggregate(MiniYaml.MergePartial);
|
||||
var partial = Game.ModData.Manifest.Missions
|
||||
.Select(MiniYaml.FromFile)
|
||||
.Aggregate(MiniYaml.MergePartial);
|
||||
|
||||
var yaml = MiniYaml.ApplyRemovals(partial);
|
||||
foreach (var kv in yaml)
|
||||
{
|
||||
var missionMapPaths = kv.Value.Nodes.Select(n => Path.GetFullPath(n.Key));
|
||||
|
||||
Reference in New Issue
Block a user