From 814c742554e40554a30cee1915b42457081000c6 Mon Sep 17 00:00:00 2001 From: kaenganxt Date: Fri, 20 Jul 2018 16:04:37 +1000 Subject: SPIGOT-840, SPIGOT-2522: [Draft] Add EntityPotionEffectChangeEvent Discussion ongoing in PR #449 --- nms-patches/EntitySpider.patch | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'nms-patches/EntitySpider.patch') diff --git a/nms-patches/EntitySpider.patch b/nms-patches/EntitySpider.patch index ce14684d..1820e8df 100644 --- a/nms-patches/EntitySpider.patch +++ b/nms-patches/EntitySpider.patch @@ -9,3 +9,12 @@ entityskeleton.startRiding(this); } +@@ -130,7 +130,7 @@ + MobEffectList mobeffectlist = ((EntitySpider.GroupDataSpider) object).a; + + if (mobeffectlist != null) { +- this.addEffect(new MobEffect(mobeffectlist, Integer.MAX_VALUE)); ++ this.addEffect(new MobEffect(mobeffectlist, Integer.MAX_VALUE), org.bukkit.event.entity.EntityPotionEffectEvent.Cause.SPIDER_SPAWN); // CraftBukkit + } + } + -- cgit v1.2.3