diff --git a/Spigot-Server-Patches/Fire-EntityCombustEvent-for-phantoms.patch b/Spigot-Server-Patches/Fire-EntityCombustEvent-for-phantoms.patch new file mode 100644 index 000000000..54129738b --- /dev/null +++ b/Spigot-Server-Patches/Fire-EntityCombustEvent-for-phantoms.patch @@ -0,0 +1,25 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Brokkonaut +Date: Sat, 13 Oct 2018 22:29:17 +0200 +Subject: [PATCH] Fire EntityCombustEvent for phantoms + + +diff --git a/src/main/java/net/minecraft/server/EntityPhantom.java b/src/main/java/net/minecraft/server/EntityPhantom.java +index e27600109..098662193 100644 +--- a/src/main/java/net/minecraft/server/EntityPhantom.java ++++ b/src/main/java/net/minecraft/server/EntityPhantom.java +@@ -0,0 +0,0 @@ public class EntityPhantom extends EntityFlying implements IMonster { + + public void k() { + if (this.dq()) { +- this.setOnFire(8); ++ // Paper start - fire EntityCombustEvent ++ org.bukkit.event.entity.EntityCombustEvent event = new org.bukkit.event.entity.EntityCombustEvent(this.getBukkitEntity(), 8); ++ if (event.callEvent()) { ++ this.setOnFire(event.getDuration()); ++ } ++ // Paper end + } + + super.k(); +-- \ No newline at end of file