GlowstoneMC / Glowstone

A fast, customizable and compatible open source server for Minecraft: Java Edition
https://glowstone.net
Other
1.9k stars 273 forks source link

Fix multi-sector region file writing #965

Closed astei closed 6 years ago

astei commented 6 years ago

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.

CLAassistant commented 6 years ago

CLA assistant check
All committers have signed the CLA.