// place to work
RealChunk realChunk = new RealChunk(chunkGen, chunk);
// figure out what everything looks like
PlatMap platmap = chunkGen.getPlatMap(chunkX, chunkZ);
if (platmap != null) {
platmap.generateBlocks(realChunk);
// finalize things
chunkGen.lootProvider.saveLoots();
// Originally by Sablednah
// Moved and modified a bit by DaddyChurchill
CityWorldEvent event = new CityWorldEvent(chunk, platmap, platmap.getMapLot(chunkX, chunkZ));
Bukkit.getServer().getPluginManager().callEvent(event);
}
} catch (Exception e) {
reportException("BlockPopulator FAILED", e);
}