mirror of
https://github.com/EngineHub/WorldEdit.git
synced 2025-01-24 12:44:56 +08:00
Don't call next suggestion provider if there are no args left.
This commit is contained in:
parent
cba32732a3
commit
6cfc60b2d6
@ -43,6 +43,11 @@ public final List<String> getSuggestions(CommandArgs args, CommandLocals locals)
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
||||
// There's nothing more anyway
|
||||
if (args.position() == args.size()) {
|
||||
return suggestions;
|
||||
}
|
||||
}
|
||||
return suggestions;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user