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 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.