Commits

Parker Hawke authored and md_5 committed 419018f5d3b
SPIGOT-6075: Snowballs don't destroy Ender Crystals
No tags

nms-patches/EntityEnderCrystal.patch

Modified
23 23 + }
24 24 + // CraftBukkit end
25 25 }
26 26 }
27 27
28 28 @@ -78,9 +87,22 @@
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()) {

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut