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

Add RegionPosition class, replace all usages of ChunkPosition as a region with it. #1622

Merged
merged 2 commits into from
Sep 23, 2024

Conversation

NotStirred
Copy link
Member

This should have zero impact on performance, but makes things much clearer and adds a nice layer of type safety on top.

I think the name of ChunkPosition#asRegionPosition is worth discussing. I didn't want to change the return type of the existing getRegionPosition in case any plugins use it as I'm unsure. Maybe none do?

@NotStirred
Copy link
Member Author

Rebased onto master (auto rebase was failing horribly)

@leMaik leMaik merged commit 62b58b1 into chunky-dev:master Sep 23, 2024
1 check passed
@NotStirred NotStirred deleted the refactor/region_position branch September 23, 2024 23:22
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