Add missing inputQueue.remove() to TextColorArgument
This commit is contained in:
parent
fcae5b8637
commit
12f5c71504
1 changed files with 1 additions and 0 deletions
|
|
@ -181,6 +181,7 @@ public final class TextColorArgument<C> extends CommandArgument<C, TextColor> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (HEX_PREDICATE.matcher(input).matches()) {
|
if (HEX_PREDICATE.matcher(input).matches()) {
|
||||||
|
inputQueue.remove();
|
||||||
return ArgumentParseResult.success(
|
return ArgumentParseResult.success(
|
||||||
TextColor.color(Integer.parseInt(input.startsWith("#") ? input.substring(1) : input, 16))
|
TextColor.color(Integer.parseInt(input.startsWith("#") ? input.substring(1) : input, 16))
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue