summaryrefslogtreecommitdiffstats
path: root/nms-patches/EntityTippedArrow.patch
diff options
context:
space:
mode:
Diffstat (limited to 'nms-patches/EntityTippedArrow.patch')
-rw-r--r--nms-patches/EntityTippedArrow.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/nms-patches/EntityTippedArrow.patch b/nms-patches/EntityTippedArrow.patch
index 12e28241..b3e1578b 100644
--- a/nms-patches/EntityTippedArrow.patch
+++ b/nms-patches/EntityTippedArrow.patch
@@ -26,3 +26,21 @@
public int getColor() {
return ((Integer) this.datawatcher.get(EntityTippedArrow.f)).intValue();
}
+@@ -180,7 +199,7 @@
+
+ while (iterator.hasNext()) {
+ mobeffect = (MobEffect) iterator.next();
+- entityliving.addEffect(new MobEffect(mobeffect.getMobEffect(), Math.max(mobeffect.getDuration() / 8, 1), mobeffect.getAmplifier(), mobeffect.isAmbient(), mobeffect.isShowParticles()));
++ entityliving.addEffect(new MobEffect(mobeffect.getMobEffect(), Math.max(mobeffect.getDuration() / 8, 1), mobeffect.getAmplifier(), mobeffect.isAmbient(), mobeffect.isShowParticles()), org.bukkit.event.entity.EntityPotionEffectEvent.Cause.ARROW); // CraftBukkit
+ }
+
+ if (!this.effects.isEmpty()) {
+@@ -188,7 +207,7 @@
+
+ while (iterator.hasNext()) {
+ mobeffect = (MobEffect) iterator.next();
+- entityliving.addEffect(mobeffect);
++ entityliving.addEffect(mobeffect, org.bukkit.event.entity.EntityPotionEffectEvent.Cause.ARROW); // CraftBukkit
+ }
+ }
+