diff --git a/OpenRA.Mods.Common/UpdateRules/UpdateUtils.cs b/OpenRA.Mods.Common/UpdateRules/UpdateUtils.cs index bac5f8d269..aec4c6f2a7 100644 --- a/OpenRA.Mods.Common/UpdateRules/UpdateUtils.cs +++ b/OpenRA.Mods.Common/UpdateRules/UpdateUtils.cs @@ -264,6 +264,11 @@ namespace OpenRA.Mods.Common.UpdateRules node.Value.Nodes.Add(toAdd); } + public static void RemoveNode(this MiniYamlNode node, MiniYamlNode toRemove) + { + node.Value.Nodes.Remove(toRemove); + } + /// Removes children with keys equal to [match] or [match]@[arbitrary suffix] public static int RemoveNodes(this MiniYamlNode node, string match) {