zonedabone/FlatBed — Issue #1: Use onChunkPopulate not onChunkLoad
Author: Darsstar
Created: 2011-10-14 20:08:14+00:00
State: open

onChunkPopulate() triggers when a new chunk finished being populated. which means no .yml file that keeps growing and instant multiworld support for the tracking of which chunk are flattened.

You just need to check for recursion and kill it when you see it! I am pointing this out in case you haven't noticed since your is-this-chunk-in-the-chunks.yml-file check is also your recursion check at the same time.

I made a plugin based on yours (for private use) and tried to improve it. I made you a [gist](https://gist.github.com/1288137).

Good luck and thanks for the plugin which saved me a lot of effort flattening layer 5 by hand.