summaryrefslogtreecommitdiffstats
path: root/nms-patches/EntitySpectralArrow.patch
blob: be4dcc85b10c71dedbf391c0dae38de1cd22d0b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/net/minecraft/server/EntitySpectralArrow.java
+++ b/net/minecraft/server/EntitySpectralArrow.java
@@ -32,7 +32,7 @@
         super.a(entityliving);
         MobEffect mobeffect = new MobEffect(MobEffects.GLOWING, this.duration, 0);
 
-        entityliving.addEffect(mobeffect);
+        entityliving.addEffect(mobeffect, org.bukkit.event.entity.EntityPotionEffectEvent.Cause.ARROW); // CraftBukkit
     }
 
     public void a(NBTTagCompound nbttagcompound) {