Skip to content

Commit

Permalink
fix registerSubcommand signature
Browse files Browse the repository at this point in the history
  • Loading branch information
jpenilla committed Feb 4, 2024
1 parent 2ac315c commit b7b32cd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
*/
package xyz.jpenilla.tabtps.common.command;

import java.util.function.UnaryOperator;
import java.util.function.Function;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.incendo.cloud.Command;
import org.incendo.cloud.CommandManager;
Expand All @@ -43,7 +43,7 @@ public Commands(final @NonNull TabTPS tabTPS, final @NonNull CommandManager<Comm
return this.commandManager;
}

public void registerSubcommand(final @NonNull UnaryOperator<Command.Builder<Commander>> modifier) {
public void registerSubcommand(final @NonNull Function<Command.Builder<Commander>, Command.Builder<? extends Commander>> modifier) {
this.commandManager.command(modifier.apply(this.rootBuilder()));
}

Expand Down

0 comments on commit b7b32cd

Please sign in to comment.