SPIGOT-840, SPIGOT-2522: [Draft] Add EntityPotionEffectChangeEvent
Discussion ongoing in PR #449 By: kaenganxt <kaenganxt@mc-anura.de>
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user