From 6f19c56acd4fe9bb781cfcd0e7f1122c58869635 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Sat, 9 Mar 2019 22:29:09 +0100 Subject: [PATCH] Fix ExplosionPrimeEvent#setFire not working with EnderCrystals By: Phoenix616 --- paper-server/nms-patches/EntityEnderCrystal.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/paper-server/nms-patches/EntityEnderCrystal.patch b/paper-server/nms-patches/EntityEnderCrystal.patch index 81245d8634..0f392b3dd5 100644 --- a/paper-server/nms-patches/EntityEnderCrystal.patch +++ b/paper-server/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 }