this code was pulled from the generator sector.cpp in finsh()...
it looks like it traverses the sector as block_array[x][z][y] and not block_array[y][x][z]
sctors are stored in XZ pallets not as Y cols
the only affected variable is the hardsolid bitfield associated with the sector.