Skip to content

Commit

Permalink
Hot bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Mqzn committed Nov 9, 2024
1 parent 0ec8e01 commit 1cb24a2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins {

allprojects {
group = "dev.velix"
version = "1.3.0"
version = "1.3.1"

ext {
def kyoriVersion = "4.17.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@ public void registerBukkitCommand(
PermissionResolver<BukkitSource> resolver
) {
commodore.register(bukkitCmd, parseCommandIntoNode(imperatCommand),
(player) -> resolver.hasPermission(wrapCommandSource(player), bukkitCmd.permission()));
(player) -> resolver.hasPermission(dispatcher.wrapSender(player), bukkitCmd.permission()));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,9 @@ private CompletableFuture<Collection<String>> addChildResults(
SuggestionResolver<S> resolver = imperat.config().getParameterSuggestionResolver(node.data);
return resolver.asyncAutoComplete(context, node.data)
.thenApply((results) -> {
results.removeIf((entry) -> !node.matchesInput(entry));
return results;
List<String> data = new ArrayList<>(results);
data.removeIf((entry) -> !node.matchesInput(entry));
return data;
})
.thenApply((res) -> {
oldResults.addAll(res);
Expand Down

0 comments on commit 1cb24a2

Please sign in to comment.