Skip to content

Fix multi-sector region file writing #965

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

Merged
merged 1 commit into from
Oct 3, 2018
Merged

Conversation

astei
Copy link
Contributor

@astei astei commented Oct 2, 2018

I contributed this code almost two years ago (under @minecrafter) and nobody had noticed this bug.

Today, as part of an unrelated project, I used this code to write code that manipulated Anvil region files. Unfortunately, this code had a bug: multi-sector chunk writing would trigger broken code that would result in sector 2 always being overwritten. This fixes that issue.

I believe this was the cause of #465.

I contributed this code almost two years ago and nobody had noticed this bug.

Today, as part of an unrelated project, I used this code to write code that manipulated Anvil region files. Unfortunately, this code had a bug.

I believe this was the cause of GlowstoneMC#465.
@CLAassistant
Copy link

CLAassistant commented Oct 2, 2018

CLA assistant check
All committers have signed the CLA.

@mastercoms mastercoms merged commit cac2581 into GlowstoneMC:dev Oct 3, 2018
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.

4 participants