Fix PopulateChunkEvent.Post not firing

This commit is contained in:
Take Weiland 2016-03-24 02:17:32 +01:00
parent 640670052c
commit bc5313c67b

View file

@ -550,7 +550,7 @@ public class ForgeEventFactory
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));
}
}