String[] words = line.split(" +");
if (words[0].equalsIgnoreCase("search")) {
lastResult.clear();
- for (Bot bot : core.bots()) {
- for (Pack pack : bot) {
+ for (Bot bot : Lists.newArrayList(core.bots())) {
+ for (Pack pack : Lists.newArrayList(bot)) {
boolean found = true;
for (int wordIndex = 1; wordIndex < words.length; ++wordIndex) {
if (words[wordIndex].startsWith("-") && pack.name().toLowerCase().contains(words[wordIndex].toLowerCase().substring(1))) {