Make StringComponent return the correct mode when throwing exception due to missing leading '"'
This commit is contained in:
parent
d60e201502
commit
f70227ad7f
1 changed files with 1 additions and 1 deletions
|
|
@ -209,7 +209,7 @@ public final class StringComponent<C extends CommandSender> extends CommandCompo
|
||||||
sj.add(string.substring(1));
|
sj.add(string.substring(1));
|
||||||
started = true;
|
started = true;
|
||||||
} else {
|
} else {
|
||||||
return ComponentParseResult.failure(new StringParseException(string, StringMode.GREEDY));
|
return ComponentParseResult.failure(new StringParseException(string, StringMode.QUOTED));
|
||||||
}
|
}
|
||||||
} else if (string.endsWith("\"")) {
|
} else if (string.endsWith("\"")) {
|
||||||
sj.add(string.substring(0, string.length() - 1));
|
sj.add(string.substring(0, string.length() - 1));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue