2015-05-25 12:37:24 +02:00
|
|
|
--- a/net/minecraft/server/PathfinderGoalNearestAttackableTarget.java
|
|
|
|
+++ b/net/minecraft/server/PathfinderGoalNearestAttackableTarget.java
|
2019-04-23 04:00:00 +02:00
|
|
|
@@ -52,7 +52,7 @@
|
2014-11-25 22:32:16 +01:00
|
|
|
|
2019-04-23 04:00:00 +02:00
|
|
|
@Override
|
2014-11-25 22:32:16 +01:00
|
|
|
public void c() {
|
2019-04-23 04:00:00 +02:00
|
|
|
- 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
|
2014-11-25 22:32:16 +01:00
|
|
|
super.c();
|
|
|
|
}
|
2019-04-23 04:00:00 +02:00
|
|
|
}
|