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

Make block hashes more dynamic to avoid registry collisions #918

Merged
merged 17 commits into from
Sep 6, 2024

Conversation

TwistedAsylumMC
Copy link
Member

Currently the number of bits given to each block is fixed from cmd/blockhash, which limits the number of custom blocks that can be registered before there are hash collisions. This pull request makes it so the number of bits is dynamically allocated at runtime to account for every block that has been registered before the server starts to avoid collisions completely.

server/world/block.go Outdated Show resolved Hide resolved
@TwistedAsylumMC TwistedAsylumMC merged commit 42801f6 into master Sep 6, 2024
4 checks passed
@TwistedAsylumMC TwistedAsylumMC deleted the feature/dynamichashes branch September 6, 2024 15:09
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