Moved extended biome registration to after normal biomes

This commit is contained in:
Adubbz 2016-02-09 12:55:36 +11:00
parent c6ce7dc016
commit dabe175d04

View file

@ -240,11 +240,12 @@ public class ModBiomes implements BOPBiomes.IBiomeRegistry
initSubBiomes(); initSubBiomes();
initMutatedBiomes(); initMutatedBiomes();
initExtendedBiomes();
registerBiomes(); registerBiomes();
registerBiomeDictionaryTags(); registerBiomeDictionaryTags();
initExtendedBiomes();
// save the biome ids to the config file (creating it if it doesn't exist) // save the biome ids to the config file (creating it if it doesn't exist)
BOPConfig.writeFile(biomeIdMapFile, biomeIdMap); BOPConfig.writeFile(biomeIdMapFile, biomeIdMap);
@ -311,26 +312,6 @@ public class ModBiomes implements BOPBiomes.IBiomeRegistry
setSubBiome(BiomeGenBase.megaTaigaHills, BiomeGenBase.getBiome(BiomeGenBase.megaTaigaHills.biomeID + 128)); setSubBiome(BiomeGenBase.megaTaigaHills, BiomeGenBase.getBiome(BiomeGenBase.megaTaigaHills.biomeID + 128));
} }
public static void initExtendedBiomes()
{
biomeWrapperMap = new HashMap<Integer, IExtendedBiome>();
end_extension = registerWrappedBiome(new BiomeExtEnd(), "end");
birch_forest_extension = registerWrappedBiome(new BiomeExtBirchForest(), "birch_forest");
desert_extension = registerWrappedBiome(new BiomeExtDesert(), "desert");
extreme_hills_extension = registerWrappedBiome(new BiomeExtExtremeHills(), "extreme_hills");
forest_extension = registerWrappedBiome(new BiomeExtForest(), "forest");
ice_plains_extension = registerWrappedBiome(new BiomeExtIcePlains(), "ice_plains");
jungle_extension = registerWrappedBiome(new BiomeExtJungle(), "jungle");
mesa_extension = registerWrappedBiome(new BiomeExtMesa(), "mesa");
plains_extension = registerWrappedBiome(new BiomeExtPlains(), "plains");
roofed_forest_extension = registerWrappedBiome(new BiomeExtRoofedForest(), "roofed_forest");
savanna_extension = registerWrappedBiome(new BiomeExtSavanna(), "savanna");
swampland_extension = registerWrappedBiome(new BiomeExtSwampland(), "swampland");
taiga_extension = registerWrappedBiome(new BiomeExtTaiga(), "taiga");
}
private static void registerBiomes() private static void registerBiomes()
{ {
// beach biomes (normal biomes rely on these being registered first) // beach biomes (normal biomes rely on these being registered first)
@ -413,6 +394,26 @@ public class ModBiomes implements BOPBiomes.IBiomeRegistry
addIslandBiome(tropical_island, 10); addIslandBiome(tropical_island, 10);
} }
public static void initExtendedBiomes()
{
biomeWrapperMap = new HashMap<Integer, IExtendedBiome>();
end_extension = registerWrappedBiome(new BiomeExtEnd(), "end");
birch_forest_extension = registerWrappedBiome(new BiomeExtBirchForest(), "birch_forest");
desert_extension = registerWrappedBiome(new BiomeExtDesert(), "desert");
extreme_hills_extension = registerWrappedBiome(new BiomeExtExtremeHills(), "extreme_hills");
forest_extension = registerWrappedBiome(new BiomeExtForest(), "forest");
ice_plains_extension = registerWrappedBiome(new BiomeExtIcePlains(), "ice_plains");
jungle_extension = registerWrappedBiome(new BiomeExtJungle(), "jungle");
mesa_extension = registerWrappedBiome(new BiomeExtMesa(), "mesa");
plains_extension = registerWrappedBiome(new BiomeExtPlains(), "plains");
roofed_forest_extension = registerWrappedBiome(new BiomeExtRoofedForest(), "roofed_forest");
savanna_extension = registerWrappedBiome(new BiomeExtSavanna(), "savanna");
swampland_extension = registerWrappedBiome(new BiomeExtSwampland(), "swampland");
taiga_extension = registerWrappedBiome(new BiomeExtTaiga(), "taiga");
}
private static void registerBiomeDictionaryTags() private static void registerBiomeDictionaryTags()
{ {
//TODO: Add biome dictionary tags for biomes that haven't been added yet //TODO: Add biome dictionary tags for biomes that haven't been added yet