// Inject our own WorldProvider
if (mcWorld.worldProvider.getName().equals("Overworld"))
{
// Only replace the worldProvider if it's the overworld
// Replacing other dimensions causes a lot of glitches
mcWorld.worldProvider = new TCWorldProvider(this, this.world.worldProvider);
}
// Inject our own BiomeManager (called WorldChunkManager)
Class<? extends BiomeGenerator> biomeModeClass = this.settings.worldConfig.biomeMode;
biomeGenerator = TerrainControl.getBiomeModeManager().createCached(biomeModeClass, this);