Merge pull request #1679 from ShaunDreclin/slayer-plugin-fix

Fix UnsupportedOperationException error in Slayer plugin
This commit is contained in:
Adam
2018-04-18 23:13:27 -04:00
committed by GitHub

View File

@@ -415,7 +415,7 @@ public class SlayerPlugin extends Plugin
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())