Closed prydin closed 4 years ago
Right now when trying to save a chunk that only has been partially loaded it will throw an NPE (see Chunk.java#L600 which is called in Chunk.java#L133). I think it would be better to throw an UnsupportedOperationException
with an appropriate message when trying to save a chunk with only partially loaded data.
Thanks! I also realized that I have a lot of OR when it should be AND. I have NO idea what I was thinking. :)
Made a lot of changes:
Fixed all my bugs described above. Added test cases. Fixed typo on Heightmaps in serialization code. Upgraded to gradle 6.5. The older version didn't support modern JDKs. Added check for partial chunk on serialization.
NBTTestCase#tearDown()
takes care of thatCARVINGMASKS
to CARVING_MASKS
for consistencyThanks! Is this ready to be merged now, or are there more changes you'd like?
lgtm
Implemented partial load of chunks and regions as described in #48.