SPIGOT-5559: Add EntityPotionEffectEvent causes for bee, raiders and wither rose

By: ShaneBee <shanebolenback@me.com>
This commit is contained in:
CraftBukkit/Spigot
2020-02-02 11:16:01 +11:00
parent 0bee4968bb
commit 0b8e05b835
3 changed files with 27 additions and 1 deletions

View File

@@ -1,6 +1,12 @@
--- a/net/minecraft/server/EntityBee.java
+++ b/net/minecraft/server/EntityBee.java
@@ -157,7 +157,7 @@
@@ -152,12 +152,12 @@
}
if (b0 > 0) {
- ((EntityLiving) entity).addEffect(new MobEffect(MobEffects.POISON, b0 * 20, 0));
+ ((EntityLiving) entity).addEffect(new MobEffect(MobEffects.POISON, b0 * 20, 0), org.bukkit.event.entity.EntityPotionEffectEvent.Cause.ATTACK); // CraftBukkit
}
}
this.setHasStung(true);