Fix UnsupportedOperationException error in Slayer plugin
This commit is contained in:
@@ -415,7 +415,7 @@ public class SlayerPlugin extends Plugin
|
|||||||
return Collections.EMPTY_LIST;
|
return Collections.EMPTY_LIST;
|
||||||
|
|
||||||
List<NPC> npcs = new ArrayList<>();
|
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$", ""));
|
highlightedNpcs.add(taskName.replaceAll("s$", ""));
|
||||||
|
|
||||||
for (NPC npc : client.getNpcs())
|
for (NPC npc : client.getNpcs())
|
||||||
|
|||||||
Reference in New Issue
Block a user