SpoutDev/Spout — pull request #1880 by mikeprimm (2012-05-17 03:01:38+00:00)
Title: SPOUT-49: Make getRegion(LoadGenerateOption.LOAD_IF_NEEDED) not create region, chunks

The getRegion() call with LoadGenerateOption.LOAD_IF_NEEDED doesn't prevent SpoutRegion from being created, which results in the region file being created (and, typically, at least one chunk being generated due to entity spawning being processed before the region unloads). The generated chunks can lead world traversal mods, like dynmap, to continue to walk the world - resulting in an ever-expanding set of nearly empty region files.

This change makes it so that, when the region isn't supposed to be generated, the region file is checked and the SpoutRegion isn't created if it doesn't exist.

Signed-off-by: Mike Primm