Add missing inputQueue.remove() to TextColorArgument

This commit is contained in:
jmp 2021-01-09 11:22:28 -08:00 committed by Alexander Söderberg
parent fcae5b8637
commit 12f5c71504

View file

@ -181,6 +181,7 @@ public final class TextColorArgument<C> extends CommandArgument<C, TextColor> {
}
}
if (HEX_PREDICATE.matcher(input).matches()) {
inputQueue.remove();
return ArgumentParseResult.success(
TextColor.color(Integer.parseInt(input.startsWith("#") ? input.substring(1) : input, 16))
);