[Bleeding] Added BlockGrowEvent. Addresses BUKKIT-104

This commit is contained in:
Feildmaster
2012-02-11 23:32:24 -06:00
committed by EvilSeph
parent 847e1c62c5
commit 7792156fb2
7 changed files with 29 additions and 15 deletions

View File

@@ -26,8 +26,7 @@ public class BlockCrops extends BlockFlower {
float f = this.i(world, i, j, k);
if (random.nextInt((int) (25.0F / f) + 1) == 0) {
++l;
world.setData(i, j, k, l);
org.bukkit.craftbukkit.event.CraftEventFactory.handleBlockGrowEvent(world, i, j, k, this.id, ++l); // CraftBukkit
}
}
}