From 47abffa2189f399303411ad60774ba5091b30082 Mon Sep 17 00:00:00 2001 From: md_5 Date: Fri, 3 Jul 2020 10:11:34 +1000 Subject: [PATCH] SPIGOT-5929: Angered zombified piglins do not inherit killed_by_player status --- nms-patches/EntityPigZombie.patch | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/nms-patches/EntityPigZombie.patch b/nms-patches/EntityPigZombie.patch index b3f4a68920..df80e5d6ba 100644 --- a/nms-patches/EntityPigZombie.patch +++ b/nms-patches/EntityPigZombie.patch @@ -18,7 +18,22 @@ }); } -@@ -132,7 +132,16 @@ +@@ -117,7 +117,7 @@ + } + + @Override +- public void setGoalTarget(@Nullable EntityLiving entityliving) { ++ public boolean setGoalTarget(@Nullable EntityLiving entityliving, org.bukkit.event.entity.EntityTargetEvent.TargetReason reason, boolean fireEvent) { // CraftBukkit - signature + if (this.getGoalTarget() == null && entityliving != null) { + this.bv = EntityPigZombie.d.a(this.random); + this.bA = EntityPigZombie.bz.a(this.random); +@@ -127,12 +127,21 @@ + this.e((EntityHuman) entityliving); + } + +- super.setGoalTarget(entityliving); ++ return super.setGoalTarget(entityliving, reason, fireEvent); // CraftBukkit + } @Override public void anger() {