Querz / mcaselector

A tool to select chunks from Minecraft worlds for deletion or export.
MIT License
3.17k stars 177 forks source link

When deleting chunks in a region, another unrelated chunk keeps getting reset also #416

Closed GIDustin closed 1 year ago

GIDustin commented 1 year ago

Describe the bug Using MCASelector to prune chunks in my world before updating to 1.20. Selecting chunks outside of my built areas. When I delete any chunk in a specific region, there is a single chunk in that region that also gets deleted. Is there something wrong with that chunk that is causing this?

To Reproduce You would need my world I guess to replicate. Open world, delete any chunk in that region, watch as another unrelated chunk also disappears

Expected behavior Only the selected chunks get reset

Screenshots and other files Attached screenshots of the issue. Orig done

Attached debug logs where I try to remove only the top right chunk in the region mcaselector.log

World is fairly large. If you need it, let me know which specific files are needed.

Environment (please complete the following information):

Querz commented 1 year ago

I am not able to reproduce this with a fresh 1.19.4 world in a fully generated region r.2.-1.mca with the same amount of selected chunks. Do you mind uploading those mca files here, specifically the r.2.-1.mca from the world's region, entities and poi folder (if they exist)?

GIDustin commented 1 year ago

Sure. I got those files in here, and on my system, the issue exists with just these 3 files.

MCASelector_Issue416.zip

Querz commented 1 year ago

Found the problem: When defragmenting an mca file and the chunk's data size would be too big (larger than 520192 bytes) it would skip that chunk and not save it.

Querz commented 1 year ago

Fixed in release 2.2.1.