Skip to content

Commit

Permalink
fix <player.closest.npc[]> to return ID by default, <player.closest.n…
Browse files Browse the repository at this point in the history
…pc[].name> for the name.
  • Loading branch information
Jeebiss committed Apr 24, 2013
1 parent 2c9a6ac commit fcb62be
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -166,9 +166,9 @@ else if (type.equalsIgnoreCase("CLOSEST"))
if (subType.equalsIgnoreCase("NPC"))
{
if (specifier.equalsIgnoreCase("NAME"))
event.setReplaced(String.valueOf(Utilities.getClosestNPC(p.getLocation(), range).getId()));
else
event.setReplaced(String.valueOf(Utilities.getClosestNPC(p.getLocation(), range).getName()));
else
event.setReplaced(String.valueOf(Utilities.getClosestNPC(p.getLocation(), range).getId()));
}
}

Expand Down

0 comments on commit fcb62be

Please sign in to comment.