mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-27 04:55:47 +01:00
12 lines
651 B
Diff
12 lines
651 B
Diff
--- a/net/minecraft/server/EntityPhantom.java
|
|
+++ b/net/minecraft/server/EntityPhantom.java
|
|
@@ -213,7 +213,7 @@
|
|
EntityHuman entityhuman = (EntityHuman) iterator.next();
|
|
|
|
if (EntityPhantom.this.a((EntityLiving) entityhuman, PathfinderTargetCondition.a)) {
|
|
- EntityPhantom.this.setGoalTarget(entityhuman);
|
|
+ EntityPhantom.this.setGoalTarget(entityhuman, org.bukkit.event.entity.EntityTargetEvent.TargetReason.CLOSEST_PLAYER, true); // CraftBukkit - reason
|
|
return true;
|
|
}
|
|
}
|