fix for entity damaged by projectile event

This commit is contained in:
Andrew Ardill
2011-01-20 20:22:34 +11:00
parent e48a4a2224
commit d58b59b5cd
2 changed files with 8 additions and 1 deletions

View File

@@ -16,6 +16,12 @@ public class EntityDamageByEntityEvent extends EntityDamageEvent implements Canc
super(Event.Type.ENTITY_DAMAGEDBY_ENTITY, damagee, cause, damage);
this.damager = damager;
}
protected EntityDamageByEntityEvent(Type damageType, Entity damager, Entity damagee, DamageCause cause, int damage)
{
super(damageType, damagee, cause, damage);
this.damager = damager;
}
/**
* Returns the entity that damaged the defender.