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 mod hash computation #356

Closed
wants to merge 3 commits into from
Closed

Conversation

AlexIIL
Copy link
Contributor

@AlexIIL AlexIIL commented Aug 26, 2023

This should fix the transform cache being recomputed every launch due to system mods not being skipped.

…ce. This should fix the transform cache being recomputed every launch due to system mods not being skipped.
return Arrays.copyOf(hash, HASH_LENGTH);
}

private static byte[] computeRecursiveHash0(Path path) throws IOException {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Question--will this report as a "SHA" hash in the mod table?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good question! No, actually - the mod table doesn't use ModLoadOption.computeOriginHash at all, as it instead uses computeNormalHash for every source path.

TheGlitch76 pushed a commit that referenced this pull request Sep 8, 2023
@TheGlitch76
Copy link
Contributor

Merged manually with 94e5ca7 as you've disabled my ability to push directly to your branch.

@TheGlitch76 TheGlitch76 closed this Sep 8, 2023
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