From 93e8864bc428ff9e11b0d28e519fae4d7cd71047 Mon Sep 17 00:00:00 2001 From: Gabriel-Andrew Pollo Guilbert Date: Fri, 11 Mar 2016 17:45:31 -0500 Subject: [PATCH] Allow the other mods to generate stuff in our biomes --- .../twilightforest/world/ChunkProviderTwilightForest.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/twilightforest/world/ChunkProviderTwilightForest.java b/src/main/java/twilightforest/world/ChunkProviderTwilightForest.java index f66673bf17..20476302fb 100644 --- a/src/main/java/twilightforest/world/ChunkProviderTwilightForest.java +++ b/src/main/java/twilightforest/world/ChunkProviderTwilightForest.java @@ -28,6 +28,7 @@ import net.minecraft.world.gen.structure.StructureBoundingBox; import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.event.terraingen.ChunkProviderEvent; +import net.minecraftforge.event.terraingen.PopulateChunkEvent; import twilightforest.TFFeature; import twilightforest.biomes.TFBiomeBase; import twilightforest.block.TFBlocks; @@ -933,6 +934,9 @@ public boolean chunkExists(int i, int j) { public void populate(IChunkProvider ichunkprovider, int chunkX, int chunkZ) { //long startTime = System.nanoTime(); + // Allow the other mods to generate stuff in our biomes. + MinecraftForge.EVENT_BUS.post(new PopulateChunkEvent.Pre(ichunkprovider, worldObj, rand, chunkX, chunkZ, false)); + BlockFalling.fallInstantly = true; int mapX = chunkX * 16; int mapY = chunkZ * 16;