mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-27 04:55:47 +01:00
30 lines
1.2 KiB
Diff
30 lines
1.2 KiB
Diff
--- a/net/minecraft/server/EntityRaider.java
|
|
+++ b/net/minecraft/server/EntityRaider.java
|
|
@@ -396,7 +396,7 @@
|
|
while (iterator.hasNext()) {
|
|
EntityRaider entityraider = (EntityRaider) iterator.next();
|
|
|
|
- entityraider.setGoalTarget(this.c.getGoalTarget());
|
|
+ entityraider.setGoalTarget(this.c.getGoalTarget(), org.bukkit.event.entity.EntityTargetEvent.TargetReason.FOLLOW_LEADER, true); // CraftBukkit
|
|
}
|
|
|
|
}
|
|
@@ -413,7 +413,7 @@
|
|
while (iterator.hasNext()) {
|
|
EntityRaider entityraider = (EntityRaider) iterator.next();
|
|
|
|
- entityraider.setGoalTarget(entityliving);
|
|
+ entityraider.setGoalTarget(this.c.getGoalTarget(), org.bukkit.event.entity.EntityTargetEvent.TargetReason.FOLLOW_LEADER, true); // CraftBukkit
|
|
entityraider.q(true);
|
|
}
|
|
|
|
@@ -487,7 +487,7 @@
|
|
|
|
private final T b;
|
|
|
|
- public b(EntityRaider entityraider) {
|
|
+ public b(T entityraider) { // CraftBukkit - decompile error
|
|
this.b = entityraider;
|
|
this.a(EnumSet.of(PathfinderGoal.Type.MOVE));
|
|
}
|