[Bleeding] Added BlockGrowEvent. Addresses BUKKIT-104

This commit is contained in:
Feildmaster authored and EvilSeph committed 2012-02-22 21:46:45 -05:00
1 parent 847e1c62c5
commit 7792156fb2
7 files changed
+29 -15

No files matched your search

@@ -26,7 +26,7 @@ public class BlockCactus extends Block {
int i1 = world.getData(i, j, k);
if (i1 == 15) {
world.setTypeId(i, j + 1, k, this.id);
org.bukkit.craftbukkit.event.CraftEventFactory.handleBlockGrowEvent(world, i, j + 1, k, this.id, 0); // CraftBukkit
world.setData(i, j, k, 0);
} else {
world.setData(i, j, k, i1 + 1);