Skip to content

Commit

Permalink
fix bug with cosmetisc running into a race condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Miepee committed Jun 14, 2024
1 parent d0799ba commit 9aa7795
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions YAMS-LIB/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ public static void Main(string am2rPath, string outputAm2rPath, string jsonPath)
// Run these in parallel to speed up performance slightly
List<Task> nonCodeTasks = new List<Task>();

// 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
Expand Down

0 comments on commit 9aa7795

Please sign in to comment.