mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-26 12:36:07 +01:00
12 lines
506 B
Diff
12 lines
506 B
Diff
--- a/net/minecraft/server/PathfinderGoalNearestAttackableTarget.java
|
|
+++ b/net/minecraft/server/PathfinderGoalNearestAttackableTarget.java
|
|
@@ -52,7 +52,7 @@
|
|
|
|
@Override
|
|
public void c() {
|
|
- this.e.setGoalTarget(this.c);
|
|
+ this.e.setGoalTarget(this.c, c instanceof EntityPlayer ? org.bukkit.event.entity.EntityTargetEvent.TargetReason.CLOSEST_PLAYER : org.bukkit.event.entity.EntityTargetEvent.TargetReason.CLOSEST_ENTITY, true); // CraftBukkit - reason
|
|
super.c();
|
|
}
|
|
|