summaryrefslogtreecommitdiffstats
path: root/nms-patches/EntityAreaEffectCloud.patch
diff options
context:
space:
mode:
authorkaenganxt <kaenganxt@mc-anura.de>2018-07-20 16:04:37 +1000
committermd_5 <git@md-5.net>2018-07-20 16:06:34 +1000
commit814c742554e40554a30cee1915b42457081000c6 (patch)
treeab1cc74348447c556db92576fd282ab465c70f3d /nms-patches/EntityAreaEffectCloud.patch
parentfa6e97a8f8c57e0a5bbd046fe9af3d795a2c11b5 (diff)
downloadcraftbukkit-814c742554e40554a30cee1915b42457081000c6.tar
craftbukkit-814c742554e40554a30cee1915b42457081000c6.tar.gz
craftbukkit-814c742554e40554a30cee1915b42457081000c6.tar.lz
craftbukkit-814c742554e40554a30cee1915b42457081000c6.tar.xz
craftbukkit-814c742554e40554a30cee1915b42457081000c6.zip
SPIGOT-840, SPIGOT-2522: [Draft] Add EntityPotionEffectChangeEvent
Discussion ongoing in PR #449
Diffstat (limited to 'nms-patches/EntityAreaEffectCloud.patch')
-rw-r--r--nms-patches/EntityAreaEffectCloud.patch9
1 files changed, 9 insertions, 0 deletions
diff --git a/nms-patches/EntityAreaEffectCloud.patch b/nms-patches/EntityAreaEffectCloud.patch
index ab14a3ca..1e00f0ad 100644
--- a/nms-patches/EntityAreaEffectCloud.patch
+++ b/nms-patches/EntityAreaEffectCloud.patch
@@ -60,3 +60,12 @@
this.h.put(entityliving, Integer.valueOf(this.ticksLived + this.reapplicationDelay));
Iterator iterator3 = arraylist.iterator();
+@@ -263,7 +295,7 @@
+ if (mobeffect1.getMobEffect().isInstant()) {
+ mobeffect1.getMobEffect().applyInstantEffect(this, this.getSource(), entityliving, mobeffect1.getAmplifier(), 0.5D);
+ } else {
+- entityliving.addEffect(new MobEffect(mobeffect1));
++ entityliving.addEffect(new MobEffect(mobeffect1), org.bukkit.event.entity.EntityPotionEffectEvent.Cause.AREA_EFFECT_CLOUD); // CraftBukkit
+ }
+ }
+