Call BlockFadeEvent for fire on inflammable block. Fixes BUKKIT-4835

This adds a call to fireExtinguished for fire burning out on inflamable
blocks, similar to other causes of fire fading.
This commit is contained in:
Phil Watson 2013-10-09 10:54:50 -07:00 committed by Wesley Wolfe
parent ca5e0c6db0
commit 159403e085

View File

@ -91,7 +91,7 @@ public class BlockFire extends Block {
world.a(i, j, k, this.id, this.a(world) + random.nextInt(10));
if (!flag && !this.k(world, i, j, k)) {
if (!world.w(i, j - 1, k) || l > 3) {
world.setAir(i, j, k);
fireExtinguished(world, i, j, k); // CraftBukkit - burn out of inflammable block
}
} else if (!flag && !this.d((IBlockAccess) world, i, j - 1, k) && l == 15 && random.nextInt(4) == 0) {
fireExtinguished(world, i, j, k); // CraftBukkit - burn out