Skip to content

Commit

Permalink
IDE. :p
Browse files Browse the repository at this point in the history
  • Loading branch information
davidcernat committed Mar 14, 2013
1 parent 59f5816 commit 401d6c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/net/aufdemrand/denizen/npc/dNPC.java
Expand Up @@ -26,7 +26,7 @@ public class dNPC {

private int npcid;

dNPC(NPC citizensNPC) {
public dNPC(NPC citizensNPC) {
this.npcid = citizensNPC.getId();
}

Expand Down
Expand Up @@ -217,7 +217,7 @@ public void playerHitByEntity(EntityDamageByEntityEvent event) {
&& event.getDamager() instanceof Player) {
Map<String, String> context = new HashMap<String, String>();
context.put("cause", event.getCause().toString());
if (doEvent("player damages npc", CitizensAPI.getNPCRegistry().getNPC(event.getEntity()),
if (doEvent("player damages npc", new dNPC(CitizensAPI.getNPCRegistry().getNPC(event.getEntity())),
(Player) event.getEntity(), context))
event.setCancelled(true);

Expand Down

0 comments on commit 401d6c7

Please sign in to comment.