Closed jotalanusse closed 7 months ago
This does look like a bug in fastanvil, thanks for the mca file. I will have to investigate at some point.
Just as an update, I've not had much time to look into this. The MCA file you provided has some chunks in it that I don't have any test coverage for. Some of your chunks have a 'Y=-5' section. A section is a 16x16x16 collection of blocks, a tower of sections make up a chunk.
You have a section for the -80 to -65 Y region for some reason, and that section contains no information at all. Usually there's a block palette at least.
I need to investigate more to know the best way to handle it, and it's definitely surfaced a very real bug in fastanvil, so thanks. :)
Hello, I'm trying to manually iterate over chunk blocks using the following example:
But at certain points it fails with the following error:
Am I doing something wrong? Iterating over the blocks with
complete_chunk.iter_blocks()
seems to work just fine, but I couldn't find how it is implemented.You can find the
.mca
file im using here.