mirror of
https://github.com/EngineHub/WorldEdit.git
synced 2024-12-27 05:00:08 +08:00
Fixed issue with double spaces in command handling.
This commit is contained in:
parent
8a9f1fbc10
commit
c5ff11f815
@ -41,7 +41,9 @@ public CommandContext(String[] args) {
|
||||
|
||||
int i = 1;
|
||||
for (; i < args.length; i++) {
|
||||
if (args[i].charAt(0) == '-' && args[i].matches("^-[a-zA-Z]+$")) {
|
||||
if (args[i].length() == 0) {
|
||||
// Ignore this
|
||||
} else if (args[i].charAt(0) == '-' && args[i].matches("^-[a-zA-Z]+$")) {
|
||||
for (int k = 1; k < args[i].length(); k++) {
|
||||
flags.add(args[i].charAt(k));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user