Skip to content

Commit

Permalink
Update for cloud changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jpenilla committed Jan 13, 2024
1 parent 4f1b5fe commit 7106849
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ protected NeoForgeCommandManager(
this.brigadierManager = new CloudBrigadierManager<>(this, () -> new CommandContext<>(
this.senderMapper.map(dummyCommandSourceProvider.get()),
this
), this.suggestionFactory, senderMapper);
), senderMapper);
this.registerCommandPreProcessor(new NeoForgeCommandPreprocessor<>(this));
this.registerDefaultExceptionHandlers();
registrationHandler.initialize(this);
Expand Down Expand Up @@ -179,7 +179,7 @@ private void registerDefaultExceptionHandlers() {
sendError.accept(source, Component.literal(throwable.getMessage())));
this.registerHandler(InvalidSyntaxException.class, (source, sender, throwable) ->
sendError.accept(source, Component.literal("Invalid Command Syntax. Correct command syntax is: ")
.append(Component.literal(String.format("/%s", throwable.getCorrectSyntax()))
.append(Component.literal(String.format("/%s", throwable.correctSyntax()))
.withStyle(style -> style.withColor(ChatFormatting.GRAY)))));
}

Expand Down

0 comments on commit 7106849

Please sign in to comment.