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 negative coordinate blocs #264

Merged
merged 1 commit into from
Jan 2, 2024
Merged

Fix negative coordinate blocs #264

merged 1 commit into from
Jan 2, 2024

Conversation

ElDonad
Copy link
Contributor

@ElDonad ElDonad commented Jan 1, 2024

Getting blocks from the world storage at negative would result in incorrect ids being fetched, due to missing conversion from world position to chunk position.

A cleaner fix would be to implement a ChunkPosition type, which would perform the conversion automatically, and use this new type for every operation involving chunk coordinates.

Getting blocks from the world storage at negative would result in incorrect ids being fetched, due to missing conversion from world position to chunk position.
Copy link
Member

@Trompettesib Trompettesib left a comment

Choose a reason for hiding this comment

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

Finally !

@emneo-dev emneo-dev merged commit 757dfbc into CubicMC:master Jan 2, 2024
2 checks 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