Skip to content

Commit

Permalink
Fix environment Any application order
Browse files Browse the repository at this point in the history
  • Loading branch information
lahm86 committed Jun 17, 2024
1 parent 6852961 commit af4cab2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions TRRandomizerCore/Randomizers/Shared/EnvironmentPicker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ public List<EMEditorSet> GetRandomAny(EMEditorMapping mapping)
{
// Pick a random number of packs to apply, but at least 1
sets = pool.RandomSelection(_generator, _generator.Next(1, pool.Count + 1));
// Ensure original order is kept as some mods rely on other things happening first
sets.Sort((s1, s2) => pool.IndexOf(s1).CompareTo(pool.IndexOf(s2)));
}

return sets;
Expand Down

0 comments on commit af4cab2

Please sign in to comment.