2019-04-23 04:00:00 +02:00
|
|
|
--- a/net/minecraft/server/EntityRaider.java
|
|
|
|
+++ b/net/minecraft/server/EntityRaider.java
|
2020-02-02 01:16:01 +01:00
|
|
|
@@ -131,7 +131,7 @@
|
|
|
|
MobEffect mobeffect1 = new MobEffect(MobEffects.BAD_OMEN, 120000, i, false, false, true);
|
|
|
|
|
|
|
|
if (!this.world.getGameRules().getBoolean(GameRules.DISABLE_RAIDS)) {
|
|
|
|
- entityhuman.addEffect(mobeffect1);
|
|
|
|
+ entityhuman.addEffect(mobeffect1, org.bukkit.event.entity.EntityPotionEffectEvent.Cause.PATROL_CAPTAIN); // CraftBukkit
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-06-25 02:00:00 +02:00
|
|
|
@@ -398,7 +398,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
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
2020-06-25 02:00:00 +02:00
|
|
|
@@ -415,7 +415,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
|
2020-06-25 02:00:00 +02:00
|
|
|
entityraider.setAggressive(true);
|
2019-04-23 04:00:00 +02:00
|
|
|
}
|
|
|
|
|
2020-06-25 02:00:00 +02:00
|
|
|
@@ -489,7 +489,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));
|
|
|
|
}
|