SPIGOT-5559: Add EntityPotionEffectEvent causes for bee, raiders and wither rose
By: ShaneBee <shanebolenback@me.com>
This commit is contained in:
@@ -1,5 +1,14 @@
|
||||
--- a/net/minecraft/server/EntityRaider.java
|
||||
+++ b/net/minecraft/server/EntityRaider.java
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -397,7 +397,7 @@
|
||||
while (iterator.hasNext()) {
|
||||
EntityRaider entityraider = (EntityRaider) iterator.next();
|
||||
|
||||
Reference in New Issue
Block a user