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

@@ -0,0 +1,11 @@
--- a/net/minecraft/server/BlockWitherRose.java
+++ b/net/minecraft/server/BlockWitherRose.java
@@ -20,7 +20,7 @@
EntityLiving entityliving = (EntityLiving) entity;
if (!entityliving.isInvulnerable(DamageSource.WITHER)) {
- entityliving.addEffect(new MobEffect(MobEffects.WITHER, 40));
+ entityliving.addEffect(new MobEffect(MobEffects.WITHER, 40), org.bukkit.event.entity.EntityPotionEffectEvent.Cause.WITHER_ROSE); // CraftBukkit
}
}