diff options
Diffstat (limited to 'patch-remap/og/net/minecraft/world/entity/raid/EntityRaider.patch')
-rw-r--r-- | patch-remap/og/net/minecraft/world/entity/raid/EntityRaider.patch | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/patch-remap/og/net/minecraft/world/entity/raid/EntityRaider.patch b/patch-remap/og/net/minecraft/world/entity/raid/EntityRaider.patch new file mode 100644 index 0000000000..a54568be33 --- /dev/null +++ b/patch-remap/og/net/minecraft/world/entity/raid/EntityRaider.patch @@ -0,0 +1,38 @@ +--- a/net/minecraft/world/entity/raid/EntityRaider.java ++++ b/net/minecraft/world/entity/raid/EntityRaider.java +@@ -165,7 +165,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 + } + } + } +@@ -305,7 +305,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)); + } +@@ -521,7 +521,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 + } + + } +@@ -538,7 +538,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); + } + |