SPIGOT-5559: Add EntityPotionEffectEvent causes for bee, raiders and wither rose
By: ShaneBee <shanebolenback@me.com>
This commit is contained in:
11
paper-server/nms-patches/BlockWitherRose.patch
Normal file
11
paper-server/nms-patches/BlockWitherRose.patch
Normal 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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user