summaryrefslogtreecommitdiffstats
path: root/nms-patches/EntityCaveSpider.patch
blob: cc15841b7b78840dc983cb3fc426c7202ac7be7e (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/net/minecraft/server/EntityCaveSpider.java
+++ b/net/minecraft/server/EntityCaveSpider.java
@@ -26,7 +26,7 @@
                 }
 
                 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
                 }
             }