Skip to content

Commit

Permalink
Fix logic in playerHitByEntity
Browse files Browse the repository at this point in the history
  • Loading branch information
Tristan Babcock committed Mar 15, 2013
1 parent 8b9809f commit ab71eb1
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -224,7 +224,9 @@ public void playerHitByEntity(EntityDamageByEntityEvent event) {
context))
event.setCancelled(true);

} else if (event.getEntity() instanceof Player) {
}

if (event.getEntity() instanceof Player) {
Map<String, String> context = new HashMap<String, String>();
context.put("cause", event.getCause().toString());
context.put("damaging entity", event.getDamager().getType().toString());
Expand Down

0 comments on commit ab71eb1

Please sign in to comment.