mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-17 13:24:17 -07:00
Implement new cause versions of BlockIgniteEvent. Addresses BUKKIT-3609, BUKKIT-3656, BUKKIT-3657
This commit is contained in:
committed by
Travis Watkins
parent
2e6cfdb3cc
commit
a7a5f273e3
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user