Fix the ExplicitSequenceFilenames updating sequences twice

This commit is contained in:
abcdefg30
2023-05-11 17:57:49 +02:00
committed by Gustas
parent 8c9cc93185
commit 95f18d4bc3

View File

@@ -336,6 +336,10 @@ namespace OpenRA.Mods.Common.UpdateRules.Rules
void ProcessNode(ModData modData, MiniYamlNode sequenceNode, MiniYamlNode resolvedSequenceNode, string imageName)
{
// "Filename" was introduced with this update rule, so that means this node was already processed and can be skipped
if (sequenceNode.LastChildMatching("Filename") != null)
return;
var addExtension = true;
var addExtensionNode = resolvedSequenceNode.LastChildMatching("AddExtension");
if (addExtensionNode != null)