2018-10-21 19:27:53 +00:00
|
|
|
From a08b6f26411ed7f1765aa6e4c34510c58d171554 Mon Sep 17 00:00:00 2001
|
2018-10-18 03:04:21 +00:00
|
|
|
From: Brokkonaut <hannos17@gmx.de>
|
|
|
|
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
|
2018-10-21 19:27:53 +00:00
|
|
|
index e2760010..09866219 100644
|
2018-10-18 03:04:21 +00:00
|
|
|
--- a/src/main/java/net/minecraft/server/EntityPhantom.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/EntityPhantom.java
|
|
|
|
@@ -105,7 +105,12 @@ 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();
|
|
|
|
--
|
2018-10-21 19:27:53 +00:00
|
|
|
2.19.1
|
2018-10-18 03:04:21 +00:00
|
|
|
|