summaryrefslogtreecommitdiffstats
path: root/nms-patches/EntitySkeletonWither.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/EntitySkeletonWither.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/EntitySkeletonWither.patch')
-rw-r--r--nms-patches/EntitySkeletonWither.patch9
1 files changed, 9 insertions, 0 deletions
diff --git a/nms-patches/EntitySkeletonWither.patch b/nms-patches/EntitySkeletonWither.patch
index d66a1b59..089956ee 100644
--- a/nms-patches/EntitySkeletonWither.patch
+++ b/nms-patches/EntitySkeletonWither.patch
@@ -17,3 +17,12 @@
}
+@@ -68,7 +69,7 @@
+ return false;
+ } else {
+ if (entity instanceof EntityLiving) {
+- ((EntityLiving) entity).addEffect(new MobEffect(MobEffects.WITHER, 200));
++ ((EntityLiving) entity).addEffect(new MobEffect(MobEffects.WITHER, 200), org.bukkit.event.entity.EntityPotionEffectEvent.Cause.ATTACK); // CraftBukkit
+ }
+
+ return true;