Skip to content

Commit

Permalink
Fix context.shooter, entity damaged by projectile
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Aug 18, 2013
1 parent 3422c29 commit ff0faf3
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -604,7 +604,7 @@ else if (damager.isPlayer()) {
else {
context.put("damager", damager);

if (damager instanceof Projectile) {
if (damager.getBukkitEntity() instanceof Projectile) {
if (((Projectile) damager.getBukkitEntity()).getShooter() != null) {

dEntity shooter = new dEntity(((Projectile) damager.getBukkitEntity()).getShooter());
Expand Down

0 comments on commit ff0faf3

Please sign in to comment.