Fix wrong EventType passed for Emerald ore-gen.

This commit is contained in:
LexManos 2015-12-10 12:41:48 -08:00
parent dcda451a0a
commit c356105e6d

View file

@ -7,7 +7,7 @@
- int i = 3 + p_180624_2_.nextInt(6); - int i = 3 + p_180624_2_.nextInt(6);
+ net.minecraftforge.common.MinecraftForge.ORE_GEN_BUS.post(new net.minecraftforge.event.terraingen.OreGenEvent.Pre(p_180624_1_, p_180624_2_, p_180624_3_)); + net.minecraftforge.common.MinecraftForge.ORE_GEN_BUS.post(new net.minecraftforge.event.terraingen.OreGenEvent.Pre(p_180624_1_, p_180624_2_, p_180624_3_));
+ WorldGenerator emeralds = new EmeraldGenerator(); + WorldGenerator emeralds = new EmeraldGenerator();
+ if (net.minecraftforge.event.terraingen.TerrainGen.generateOre(p_180624_1_, p_180624_2_, emeralds, p_180624_3_, net.minecraftforge.event.terraingen.OreGenEvent.GenerateMinable.EventType.LAPIS)) + if (net.minecraftforge.event.terraingen.TerrainGen.generateOre(p_180624_1_, p_180624_2_, emeralds, p_180624_3_, net.minecraftforge.event.terraingen.OreGenEvent.GenerateMinable.EventType.EMERALD))
+ emeralds.func_180709_b(p_180624_1_, p_180624_2_, p_180624_3_); + emeralds.func_180709_b(p_180624_1_, p_180624_2_, p_180624_3_);
- for (int j = 0; j < i; ++j) - for (int j = 0; j < i; ++j)
@ -40,7 +40,7 @@
{ {
return (new BiomeGenHills(p_180277_1_, false)).func_150633_b(this); return (new BiomeGenHills(p_180277_1_, false)).func_150633_b(this);
} }
+ +
+ private static class EmeraldGenerator extends WorldGenerator + private static class EmeraldGenerator extends WorldGenerator
+ { + {
+ @Override + @Override