mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 12:02:36 +01:00
43702a9e10
By: md_5 <git@md-5.net>
38 lines
1.7 KiB
Diff
38 lines
1.7 KiB
Diff
--- a/net/minecraft/world/entity/raid/EntityRaider.java
|
|
+++ b/net/minecraft/world/entity/raid/EntityRaider.java
|
|
@@ -166,7 +166,7 @@
|
|
MobEffect mobeffect1 = new MobEffect(MobEffects.BAD_OMEN, 120000, i, false, false, true);
|
|
|
|
if (!this.level.getGameRules().getBoolean(GameRules.RULE_DISABLE_RAIDS)) {
|
|
- entityhuman.addEffect(mobeffect1);
|
|
+ entityhuman.addEffect(mobeffect1, org.bukkit.event.entity.EntityPotionEffectEvent.Cause.PATROL_CAPTAIN); // CraftBukkit
|
|
}
|
|
}
|
|
}
|
|
@@ -306,7 +306,7 @@
|
|
|
|
private final T mob;
|
|
|
|
- public b(EntityRaider entityraider) {
|
|
+ public b(T entityraider) { // CraftBukkit - decompile error
|
|
this.mob = entityraider;
|
|
this.setFlags(EnumSet.of(PathfinderGoal.Type.MOVE));
|
|
}
|
|
@@ -522,7 +522,7 @@
|
|
while (iterator.hasNext()) {
|
|
EntityRaider entityraider = (EntityRaider) iterator.next();
|
|
|
|
- entityraider.setTarget(this.mob.getTarget());
|
|
+ entityraider.setTarget(this.mob.getTarget(), org.bukkit.event.entity.EntityTargetEvent.TargetReason.FOLLOW_LEADER, true); // CraftBukkit
|
|
}
|
|
|
|
}
|
|
@@ -539,7 +539,7 @@
|
|
while (iterator.hasNext()) {
|
|
EntityRaider entityraider = (EntityRaider) iterator.next();
|
|
|
|
- entityraider.setTarget(entityliving);
|
|
+ entityraider.setTarget(this.mob.getTarget(), org.bukkit.event.entity.EntityTargetEvent.TargetReason.FOLLOW_LEADER, true); // CraftBukkit
|
|
entityraider.setAggressive(true);
|
|
}
|
|
|