From 9aa77957172615fb0f5228c4dd74e10e67c2f01c Mon Sep 17 00:00:00 2001 From: Miepee Date: Fri, 14 Jun 2024 12:40:38 +0200 Subject: [PATCH] fix bug with cosmetisc running into a race condition --- YAMS-LIB/Program.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/YAMS-LIB/Program.cs b/YAMS-LIB/Program.cs index 573bf1a..1345ded 100644 --- a/YAMS-LIB/Program.cs +++ b/YAMS-LIB/Program.cs @@ -64,8 +64,8 @@ public static void Main(string am2rPath, string outputAm2rPath, string jsonPath) // Run these in parallel to speed up performance slightly List nonCodeTasks = new List(); - // Import new Sprites - nonCodeTasks.Add(Task.Run(() => Sprites.Apply(gmData, decompileContext, seedObject))); + // Import new Sprites (can't run it parallel, 'cause some edits rely on this being done first.) + Sprites.Apply(gmData, decompileContext, seedObject); // Apply cosmetic patches nonCodeTasks.Add(Task.Run(() => CosmeticHud.Apply(gmData, decompileContext, seedObject))); // Shuffle Music