From bc5313c67b1c064ad6e0d749ffd563bc5cc76fcf Mon Sep 17 00:00:00 2001 From: Take Weiland Date: Thu, 24 Mar 2016 02:17:32 +0100 Subject: [PATCH] Fix PopulateChunkEvent.Post not firing --- src/main/java/net/minecraftforge/event/ForgeEventFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/minecraftforge/event/ForgeEventFactory.java b/src/main/java/net/minecraftforge/event/ForgeEventFactory.java index f8d41684e..cdbac5b1d 100644 --- a/src/main/java/net/minecraftforge/event/ForgeEventFactory.java +++ b/src/main/java/net/minecraftforge/event/ForgeEventFactory.java @@ -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)); } }