diff --git a/OpenRA.Mods.Common/UpdateRules/UpdateUtils.cs b/OpenRA.Mods.Common/UpdateRules/UpdateUtils.cs index 26c62cd35a..5895572b53 100644 --- a/OpenRA.Mods.Common/UpdateRules/UpdateUtils.cs +++ b/OpenRA.Mods.Common/UpdateRules/UpdateUtils.cs @@ -254,6 +254,11 @@ namespace OpenRA.Mods.Common.UpdateRules node.Value.Nodes.Add(new MiniYamlNode(key, FieldSaver.FormatValue(value))); } + public static void AddNode(this MiniYamlNode node, MiniYamlNode toAdd) + { + node.Value.Nodes.Add(toAdd); + } + /// Removes children with keys equal to [match] or [match]@[arbitrary suffix] public static int RemoveNodes(this MiniYamlNode node, string match) {