3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-20 21:40:06 +01:00
Paper/nms-patches/EntityPhantom.patch

12 Zeilen
651 B
Diff

2018-07-15 02:00:00 +02:00
--- a/net/minecraft/server/EntityPhantom.java
+++ b/net/minecraft/server/EntityPhantom.java
2019-12-10 23:00:00 +01:00
@@ -214,7 +214,7 @@
2018-07-15 02:00:00 +02:00
EntityHuman entityhuman = (EntityHuman) iterator.next();
2019-04-23 04:00:00 +02:00
if (EntityPhantom.this.a((EntityLiving) entityhuman, PathfinderTargetCondition.a)) {
2018-07-15 02:00:00 +02:00
- EntityPhantom.this.setGoalTarget(entityhuman);
+ EntityPhantom.this.setGoalTarget(entityhuman, org.bukkit.event.entity.EntityTargetEvent.TargetReason.CLOSEST_PLAYER, true); // CraftBukkit - reason
return true;
}
}