2019-01-01 03:15:55 +00:00
|
|
|
From 60efbfb73f94b2855adf910e7c5d5617ad4bf4a9 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
|
2019-01-01 03:15:55 +00:00
|
|
|
index f576264a8..7db0d62df 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
|
2019-01-01 03:15:55 +00:00
|
|
|
@@ -104,7 +104,12 @@ public class EntityPhantom extends EntityFlying implements IMonster {
|
2018-10-18 03:04:21 +00:00
|
|
|
|
2018-12-17 05:18:06 +00:00
|
|
|
public void movementTick() {
|
2018-10-18 03:04:21 +00:00
|
|
|
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
|
|
|
|
}
|
|
|
|
|
2018-12-17 05:18:06 +00:00
|
|
|
super.movementTick();
|
2018-10-18 03:04:21 +00:00
|
|
|
--
|
2019-01-01 03:15:55 +00:00
|
|
|
2.20.1
|
2018-10-18 03:04:21 +00:00
|
|
|
|