3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-24 15:20:11 +01:00
Paper/nms-patches/PathfinderGoalNearestAttackableTarget.patch

12 Zeilen
506 B
Diff

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 @@
2019-04-23 04:00:00 +02:00
@Override
public void c() {
2019-04-23 04:00:00 +02:00
- this.e.setGoalTarget(this.c);
2020-02-02 01:18:17 +01:00
+ 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();
}
2020-06-25 02:00:00 +02:00