2019-04-23 04:00:00 +02:00
|
|
|
--- a/net/minecraft/server/EntityRaider.java
|
|
|
|
+++ b/net/minecraft/server/EntityRaider.java
|
2019-07-20 01:00:00 +02:00
|
|
|
@@ -399,7 +399,7 @@
|
2019-04-23 04:00:00 +02:00
|
|
|
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
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
2019-07-20 01:00:00 +02:00
|
|
|
@@ -416,7 +416,7 @@
|
2019-04-23 04:00:00 +02:00
|
|
|
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);
|
|
|
|
}
|
|
|
|
|
2019-07-20 01:00:00 +02:00
|
|
|
@@ -490,7 +490,7 @@
|
2019-04-23 04:00:00 +02:00
|
|
|
|
|
|
|
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));
|
|
|
|
}
|