From 0dc71b0b4c3ebceb4f01733c5cb60d9d935132f4 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Sun, 23 Aug 2020 19:14:58 +1000 Subject: [PATCH] SPIGOT-6097: Zoglins not attacking mobs By: md_5 --- paper-server/nms-patches/BehaviorAttackTargetForget.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paper-server/nms-patches/BehaviorAttackTargetForget.patch b/paper-server/nms-patches/BehaviorAttackTargetForget.patch index 45eff8c895..19b3cca278 100644 --- a/paper-server/nms-patches/BehaviorAttackTargetForget.patch +++ b/paper-server/nms-patches/BehaviorAttackTargetForget.patch @@ -18,7 +18,7 @@ private void d(E e0) { + // CraftBukkit start + EntityLiving old = e0.getBehaviorController().getMemory(MemoryModuleType.ATTACK_TARGET).orElse(null); -+ EntityTargetEvent event = CraftEventFactory.callEntityTargetLivingEvent(e0, old, (old != null && !old.isAlive()) ? EntityTargetEvent.TargetReason.TARGET_DIED : EntityTargetEvent.TargetReason.FORGOT_TARGET); ++ EntityTargetEvent event = CraftEventFactory.callEntityTargetLivingEvent(e0, null, (old != null && !old.isAlive()) ? EntityTargetEvent.TargetReason.TARGET_DIED : EntityTargetEvent.TargetReason.FORGOT_TARGET); + if (event.isCancelled()) { + return; + }