[Bleeding] Added event calls for healing and harming by potions

This commit is contained in:
Zeerix
2012-01-14 00:29:44 +01:00
committed by Erik Broes
parent 2cc70bb055
commit 1d04305cea
3 changed files with 205 additions and 1 deletions

View File

@@ -66,7 +66,7 @@ public class EntityPotion extends EntityProjectile {
int i = mobeffect.getEffectId();
if (MobEffectList.byId[i].b()) {
MobEffectList.byId[i].a(this.shooter, (EntityLiving) entity, mobeffect.getAmplifier(), d1);
MobEffectList.byId[i].a(this.shooter, (EntityLiving) entity, mobeffect.getAmplifier(), d1, this); // CraftBukkit - added 'this'
} else {
int j = (int) (d1 * (double) mobeffect.getDuration() + 0.5D);