Replies: 1 comment 1 reply
-
Don't have time to go into it right now, but Regionerator deletes chunks by wiping their pointers from the chunk header. What you're proposing would require a full region file write rather than editing the 4096 byte pointers and 4096 byte last edit timestamps, and would be a lot more expensive in terms of I/O. If you want basic details, I got most of my information for deleting chunks and the format in general from https://pastebin.com/niWTqLvk and can go into more specifics later |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I would like to know the process in which chunks are deleted (detailed if possible). I am working on adding functionality to the plugin where certain regions and chunks are restored from backed-up regions upon deletion. If there are no backups for a region or world, the plugin just functions as normal and deletes the regions/chunks.
I have completed this for regions as a whole, but once it gets to managing specific chunks I haven't gotten it to work. I assume this is just because I don't know exactly how the plugin handles deleting specific chunks.
I know
AnvilRegion.write()
andRegionFile.deleteChunk()
handle most of the deletion for regions and chunks.(Just to aid in communication, I will understand code complexity as I am a fourth-year CS major, so don't be afraid to get into the nitty gritty!)
If it would be easier to talk elsewhere please let me know.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions