Fix bug where default bonemeal behavior wouldn't trigger. Only return if the event was canceled.

This commit is contained in:
Jonathan Marini 2012-08-13 15:42:19 -04:00
parent ede1e54c5e
commit 66bd2868cb

View file

@ -17,7 +17,7 @@
var11 = par3World.getBlockId(par4, par5, par6);
+
+ BonemealEvent event = new BonemealEvent(par2EntityPlayer, par3World, var11, par4, par5, par6);
+ if (!MinecraftForge.EVENT_BUS.post(event))
+ if (MinecraftForge.EVENT_BUS.post(event))
+ {
+ return false;
+ }