diff --git a/gradle.properties b/gradle.properties index 7bd4663..6cefd63 100644 --- a/gradle.properties +++ b/gradle.properties @@ -2,5 +2,5 @@ org.gradle.jvmargs=-Xmx3G forgeVersion=10.13.4.1558 mcpMappings=stable_12 -modVersion=1.0.2 +modVersion=1.0.3 minecraftVersion=1.7.10 \ No newline at end of file diff --git a/src/main/java/com/jadedpacks/jadedoceanspawns/Main.java b/src/main/java/com/jadedpacks/jadedoceanspawns/Main.java index ac5e26b..be248c3 100644 --- a/src/main/java/com/jadedpacks/jadedoceanspawns/Main.java +++ b/src/main/java/com/jadedpacks/jadedoceanspawns/Main.java @@ -9,18 +9,17 @@ import net.minecraft.world.biome.BiomeGenBase.SpawnListEntry; import net.minecraftforge.common.BiomeDictionary; -import java.util.ArrayList; import java.util.Arrays; @Mod(modid = "jadedoceanspawns", name = "JadedOceanSpawns", version = "@VERSION@") public class Main { @Mod.EventHandler public void postInit(FMLPostInitializationEvent event) { - for(ArrayList biomes : BiomeDictionary.typeInfoList) { - if(biomes == null) { - continue; - } - for(final BiomeGenBase biome : biomes) { + for(BiomeDictionary.Type type : BiomeDictionary.Type.values()) { + for(BiomeGenBase biome : BiomeDictionary.getBiomesForType(type)) { + if(biome == null) { + continue; + } biome.enableRain = true; biome.getSpawnableList(EnumCreatureType.creature).addAll(Arrays.asList( new SpawnListEntry(EntitySheep.class, 8, 1, 4), diff --git a/src/main/resources/META-INF/JadedOceanSpawns_AT.cfg b/src/main/resources/META-INF/JadedOceanSpawns_AT.cfg index 01ff12a..50e7efb 100644 --- a/src/main/resources/META-INF/JadedOceanSpawns_AT.cfg +++ b/src/main/resources/META-INF/JadedOceanSpawns_AT.cfg @@ -1,2 +1 @@ -public net.minecraft.world.biome.BiomeGenBase field_76765_S # enableRain -public net.minecraftforge.common.BiomeDictionary typeInfoList \ No newline at end of file +public net.minecraft.world.biome.BiomeGenBase field_76765_S # enableRain \ No newline at end of file