fix subLiterals unknown and the test
two stupid bugs...
This commit is contained in:
parent
77ea59cc92
commit
546be9db36
6 changed files with 32 additions and 41 deletions
|
|
@ -20,5 +20,4 @@ public class BukkitCommandContext<C extends CommandContext<C>> extends AbstractC
|
|||
public Player player() {
|
||||
return (Player) sender();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ public class BukkitScrowCommand<C extends BukkitCommandContext<C>> extends Comma
|
|||
commandHandler.invoke(
|
||||
rootLiteral,
|
||||
commandContextFactory.createContext(rootLiteral, commandSender),
|
||||
Stream.of(args).filter(str -> !str.isEmpty())
|
||||
Stream.of(args).filter(arg -> !arg.isEmpty())
|
||||
);
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue