Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-19 13:00:06 +01:00
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.
Dieser Commit ist enthalten in:
Ursprung
ca5e0c6db0
Commit
159403e085
@ -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
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren