Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix]: Sequential ordering of mod patches #314

Merged

Conversation

JonathanFeenstra
Copy link
Contributor

@JonathanFeenstra JonathanFeenstra commented Sep 11, 2024

This PR fixes a small oversight in the EngineViewModel:

  • Sequential OrderBy calls are replaced with ThenBy so the first ordering takes precedence over the next instead of being overwritten by it.
  • In the LoadAsync method, i is now decremented after removing an already existing modInfo from the list during iteration. Otherwise, the next modInfo will be skipped in the following iteration since the index is based on the position in the list before the removal. (This was already fixed in Bryan's PR, so I removed it).

@BryanAldrich
Copy link

The loop you corrected was replaced in #309 and doesn't summer from the original issue you mentioned above. Good catch though.

@JonathanFeenstra
Copy link
Contributor Author

I see, I removed it to prevent conflicts.

@JonathanFeenstra JonathanFeenstra changed the title Fix ordering of mods and skipping of existing mods during load Fix ordering of mods in EngineViewModel Sep 12, 2024
@Monitor221hz Monitor221hz changed the title Fix ordering of mods in EngineViewModel [Fix]: Sequential ordering of mod patches Oct 18, 2024
@Monitor221hz Monitor221hz merged commit d8227c6 into Monitor221hz:main Oct 18, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants