Bugfixes, improves memory efficiency (curb out of memory) and more
This update enables very large worlds to be fixed, with chunks in the orders reaching millions, without causing the server to run out of memory. In addition various bugfixes have been applied.
Bugfixes:
Reduce memory usage of pending tasks, so that millions of chunks can be safely queued without using up 10GB of RAM
Fix a bug that caused corrupted data to be saved in PendingLight.dat, which caused a server freeze the next time the plugin enabled
Only write updated light levels to chunks when the light levels actually change
Only re-send chunks to nearby players when the light levels change. Avoids resending all chunks when only a tiny area is cleaned.
Set the 'dirty' flag for chunks changed by the plugin to guarantee the light changes are saved persistently
Save world data periodically while fixing to prevent building up a lot of cached data in memory
Raise minimum memory requirements to 400MB. Logs a warning if the older 200MB is used. 200MB was shown to be too low for the server.