diff --git a/nms-patches/BehaviorAttackTargetForget.patch b/nms-patches/BehaviorAttackTargetForget.patch index 45eff8c895..19b3cca278 100644 --- a/nms-patches/BehaviorAttackTargetForget.patch +++ b/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; + }