flushCachedChunks

fun flushCachedChunks()

Writes all cached chunks to the disk, empties the cache.

Useful when writing data directly from RegionFile via setBlockState for instance