07-08-2014, 03:36 AM
You cannot reliably get all loaded chunks. You either want the chunks loaded, and use the cWorld:ChunkStay() function to make sure they are loaded, or keep track of the chunks using the loading and unloading hooks - those are serialized so you're guaranteed that the chunks that you have in your list are loaded. This won't work well with plugin reloads, though.
Alright, making a callback to enumerate all loaded chunks sounds like a good idea in this context.
Alright, making a callback to enumerate all loaded chunks sounds like a good idea in this context.