Fixing the concurrency issue

This commit is contained in:
sekwah41 2018-02-02 09:39:11 +00:00 committed by Sekwah
parent dd08206dd4
commit 7c554cd461

View File

@ -144,7 +144,7 @@ public class CommandWithSubCommands implements CommandTemplate {
}
public List<String> filterTabResults(List<String> tabList, String lastArg) {
for(String arg : tabList) {
for(String arg : tabList.toArray(new String[0])) {
if(!arg.startsWith(lastArg.toLowerCase())) {
tabList.remove(arg);
}