mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-25 10:29:41 -05:00
Rework EntityExplodeEvent. Fixes BUKKIT-4140. Adds BUKKIT-4141
This commit is contained in:
1 parent
708b0e6ae1
commit
83c3aa188b
3 files changed
+24
-22
No files matched your search
@@ -262,13 +262,11 @@ public class Explosion {
|
||||
this.world.addParticle("smoke", d0, d1, d2, d3, d4, d5);
|
||||
}
|
||||
|
||||
|
||||
// CraftBukkit - stop explosions from putting out fire
|
||||
if (l > 0 && l != Block.FIRE.id) {
|
||||
if (l > 0) {
|
||||
Block block = Block.byId[l];
|
||||
|
||||
if (block.a(this)) {
|
||||
// CraftBukkit
|
||||
// CraftBukkit - add yield
|
||||
block.dropNaturally(this.world, i, j, k, this.world.getData(i, j, k), event.getYield(), 0);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user