forked from upstream/ProAntiTab
Fixed possible ModificationException
This commit is contained in:
1 parent
b8dde730f5
commit
7c38083e64
1 file changed
+1
-1
@@ -17,7 +17,7 @@ public class TabCompletion extends FilteredTabCompletionEvent {
|
||||
|
||||
UUID uuid = event.getSenderObj() instanceof UUID ? (UUID) event.getSenderObj() : new CommandSender(event.getSenderObj()).getUniqueId();
|
||||
Argument argument = SubArgsModule.PLAYER_COMMANDS.getOrDefault(uuid, Argument.getGeneralArgument());
|
||||
List<String> possibilities = event.getCompletion(), result = argument.getResult(cursor);
|
||||
List<String> possibilities = event.getCompletion(), result = new ArrayList<>(argument.getResult(cursor));
|
||||
|
||||
if(Storage.ConfigSections.Settings.TURN_BLACKLIST_TO_WHITELIST.ENABLED) {
|
||||
possibilities = result;
|
||||
|
||||
Reference in new issue
Block a user