Paper/nms-patches/PathfinderGoalNearestAttackableTargetInsentient.patch

10 Zeilen
258 B
Diff

@@ -54,7 +54,7 @@
}
public void c() {
- this.b.setGoalTarget(this.e);
+ this.b.setGoalTarget(this.e, org.bukkit.event.entity.EntityTargetEvent.TargetReason.CLOSEST_ENTITY, true); // CraftBukkit - reason
super.c();
}