Commits
Parker Hawke authored and md_5 committed 419018f5d3b
23 23 | + } |
24 24 | + // CraftBukkit end |
25 25 | } |
26 26 | } |
27 27 | |
28 28 | |
29 29 | return false; |
30 30 | } else { |
31 31 | if (!this.dead && !this.world.isClientSide) { |
32 32 | + // CraftBukkit start - All non-living entities need this |
33 - | + if (CraftEventFactory.handleNonLivingEntityDamageEvent(this, damagesource, f)) { |
33 + | + if (CraftEventFactory.handleNonLivingEntityDamageEvent(this, damagesource, f, false)) { |
34 34 | + return false; |
35 35 | + } |
36 36 | + // CraftBukkit end |
37 37 | this.die(); |
38 38 | if (!damagesource.isExplosion()) { |
39 39 | - this.world.explode((Entity) null, this.locX(), this.locY(), this.locZ(), 6.0F, Explosion.Effect.DESTROY); |
40 40 | + // CraftBukkit start |
41 41 | + ExplosionPrimeEvent event = new ExplosionPrimeEvent(this.getBukkitEntity(), 6.0F, false); |
42 42 | + this.world.getServer().getPluginManager().callEvent(event); |
43 43 | + if (event.isCancelled()) { |