Skip to content

Commit

Permalink
Fix for 1.7.10 access
Browse files Browse the repository at this point in the history
  • Loading branch information
Kris committed Aug 4, 2019
1 parent d4a2b02 commit 6792720
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
11 changes: 5 additions & 6 deletions src/main/java/com/jadedpacks/jadedoceanspawns/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -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<BiomeGenBase> 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),
Expand Down
3 changes: 1 addition & 2 deletions src/main/resources/META-INF/JadedOceanSpawns_AT.cfg
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
public net.minecraft.world.biome.BiomeGenBase field_76765_S # enableRain
public net.minecraftforge.common.BiomeDictionary typeInfoList
public net.minecraft.world.biome.BiomeGenBase field_76765_S # enableRain

0 comments on commit 6792720

Please sign in to comment.