{
// Store the previous biome in a variable
BiomeGenBase previousBiome = BiomeGenBase.getBiome(biomeIds.getSavedId());
// Register new biome
ForgeBiome biome = new ForgeBiome(biomeConfig, new BiomeGenCustom(biomeConfig.getName(), biomeIds));
// Restore settings of the previous biome
if (previousBiome != null)
{
biome.biomeBase.copyBiome(previousBiome);