Skip to content

Commit

Permalink
Merge pull request runelite#1679 from ShaunDreclin/slayer-plugin-fix
Browse files Browse the repository at this point in the history
Fix UnsupportedOperationException error in Slayer plugin
  • Loading branch information
Adam- authored Apr 19, 2018
2 parents 3c76aa8 + 14c0947 commit 9158713
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ private List<NPC> buildTargetsToHighlight()
return Collections.EMPTY_LIST;

List<NPC> npcs = new ArrayList<>();
List<String> highlightedNpcs = Arrays.asList(Task.getTask(taskName).getTargetNames());
List<String> highlightedNpcs = new ArrayList<>(Arrays.asList(Task.getTask(taskName).getTargetNames()));
highlightedNpcs.add(taskName.replaceAll("s$", ""));

for (NPC npc : client.getNpcs())
Expand Down

0 comments on commit 9158713

Please sign in to comment.