Skip to content

Commit

Permalink
Re-Add context to ArgumentType
Browse files Browse the repository at this point in the history
  • Loading branch information
Gamebuster19901 committed Jan 22, 2025
1 parent e131204 commit 3ebb060
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public interface ArgumentType<T> {
<S> T parse(S context, StringReader reader) throws CommandSyntaxException;

default <S> T parse(final StringReader reader, final S source) throws CommandSyntaxException {
return parse(reader);
return parse(source, reader);
}

default <S> CompletableFuture<Suggestions> listSuggestions(final CommandContext<S> context, final SuggestionsBuilder builder) {
Expand Down

0 comments on commit 3ebb060

Please sign in to comment.