Allowed for multiple parents of river biomes

This commit is contained in:
Adubbz 2014-05-13 20:11:50 +10:00
parent b298ee00f4
commit c28c36a158

View file

@ -383,7 +383,7 @@ public class BOPBiomes
return null;
}
private static BiomeGenBase registerOverworldRiverBiome(Class<? extends BiomeGenBase> biomeClass, String biomeName, int parent)
private static BiomeGenBase registerOverworldRiverBiome(Class<? extends BiomeGenBase> biomeClass, String biomeName, int...parents)
{
BiomeGenBase biome = BOPBiomeManager.createBiome(biomeClass, biomeName);
@ -391,7 +391,10 @@ public class BOPBiomes
{
if (BOPConfigurationBiomeGen.config.get("Overworld (River) Biomes To Generate", biome.biomeName, true).getBoolean(false))
{
BOPBiomeManager.overworldRiverBiomes[parent] = biome;
for (int parent : parents)
{
BOPBiomeManager.overworldRiverBiomes[parent] = biome;
}
}
}