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 cached files not being updated when one mod registers multiple sources for a file #22

Merged
merged 1 commit into from
Sep 23, 2023
Merged

Conversation

AnimatedSwine37
Copy link
Collaborator

Previously the cache assumed that one modId could only have one associated file (which was valid when this was only used for tbl merging).
Now, however, it is possible for one mod to register multiple sources for the same file (for example I do this to add "configurable" parts to files with bf emulator). Because of this there were cases where the cache wouldn't be updated as the sources lengths were not compared. This pr fixes that.

@AnimatedSwine37 AnimatedSwine37 changed the title Fix cached files not being updated when one mod registers multiple Fix cached files not being updated when one mod registers multiple sources for a file Sep 23, 2023
@Sewer56
Copy link
Owner

Sewer56 commented Sep 23, 2023

Had a look at the code associated with this, looks good.

@Sewer56 Sewer56 merged commit 8d60cad into Sewer56:master Sep 23, 2023
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.

2 participants