From 8b1588e2f166a14c2bf1f157aa17c3047f1d455e Mon Sep 17 00:00:00 2001 From: Phoenix616 Date: Sat, 9 Mar 2019 22:29:09 +0100 Subject: [PATCH] Fix ExplosionPrimeEvent#setFire not working with EnderCrystals --- nms-patches/EntityEnderCrystal.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nms-patches/EntityEnderCrystal.patch b/nms-patches/EntityEnderCrystal.patch index 81245d8634..0f392b3dd5 100644 --- a/nms-patches/EntityEnderCrystal.patch +++ b/nms-patches/EntityEnderCrystal.patch @@ -39,13 +39,13 @@ if (!damagesource.isExplosion()) { - this.world.explode((Entity) null, this.locX, this.locY, this.locZ, 6.0F, true); + // CraftBukkit start -+ ExplosionPrimeEvent event = new ExplosionPrimeEvent(this.getBukkitEntity(), 6.0F, true); ++ ExplosionPrimeEvent event = new ExplosionPrimeEvent(this.getBukkitEntity(), 6.0F, false); + this.world.getServer().getPluginManager().callEvent(event); + if (event.isCancelled()) { + this.dead = false; + return false; + } -+ this.world.explode(this, this.locX, this.locY, this.locZ, event.getRadius(), event.getFire()); ++ this.world.createExplosion(this, this.locX, this.locY, this.locZ, event.getRadius(), event.getFire(), true); + // CraftBukkit end }