[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 BlockNetherWart extends BlockFlower {
BiomeBase biomebase = worldchunkmanager.getBiome(i, k);
if (biomebase instanceof BiomeHell && random.nextInt(15) == 0) {
++l;
world.setData(i, j, k, l);
org.bukkit.craftbukkit.event.CraftEventFactory.handleBlockGrowEvent(world, i, j, k, this.id, ++l); // CraftBukkit
}
}
}