Merge pull request #2645 from diesieben07/populate_event

Fix PopulateChunkEvent.Post not firing.
This commit is contained in:
LexManos 2016-03-24 14:37:55 -07:00
commit dd201c066e
1 changed files with 1 additions and 1 deletions

View File

@ -548,7 +548,7 @@ public class ForgeEventFactory
public static void onChunkPopulate(boolean pre, IChunkGenerator gen, World world, int x, int z, boolean hasVillageGenerated) public static void onChunkPopulate(boolean pre, IChunkGenerator gen, World world, int x, int z, boolean hasVillageGenerated)
{ {
MinecraftForge.EVENT_BUS.post(new PopulateChunkEvent.Pre(gen, world, world.rand, x, z, hasVillageGenerated)); MinecraftForge.EVENT_BUS.post(pre ? new PopulateChunkEvent.Pre(gen, world, world.rand, x, z, hasVillageGenerated) : new PopulateChunkEvent.Post(gen, world, world.rand, x, z, hasVillageGenerated));
} }
} }