Implement new cause versions of BlockIgniteEvent. Addresses BUKKIT-3609, BUKKIT-3656, BUKKIT-3657

This commit is contained in:
Yariv Livay authored and Travis Watkins committed 2013-03-18 12:47:01 -05:00
1 parent 2e6cfdb3cc
commit a7a5f273e3
10 files changed
+104 -77

No files matched your search

@@ -290,7 +290,10 @@ public class Explosion {
int i1 = this.world.getTypeId(i, j - 1, k);
if (l == 0 && Block.s[i1] && this.j.nextInt(3) == 0) {
this.world.setTypeIdUpdate(i, j, k, Block.FIRE.id);
// CraftBukkit start - ignition by explosion.
if (!org.bukkit.craftbukkit.event.CraftEventFactory.callBlockIgniteEvent(this.world, i, j, k, this).isCancelled()) {
this.world.setTypeIdUpdate(i, j, k, Block.FIRE.id);
} // CraftBukkit end
}
}
}