mirror of
https://github.com/sekwah41/Advanced-Portals.git
synced 2025-01-25 09:31:56 +01:00
Fixing the concurrency issue
This commit is contained in:
parent
dd08206dd4
commit
7c554cd461
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user