More compile fixes
This commit is contained in:
@@ -1683,12 +1683,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
- Component component = chatDecorator.decorate(source.getPlayer(), message.decoratedContent());
|
||||
- callback.accept(message.withUnsignedContent(component));
|
||||
+ // Paper start
|
||||
+ source.getChatMessageChainer().append(executor -> {
|
||||
+ CompletableFuture<ChatDecorator.Result> componentFuture = chatDecorator.decorate(source.getPlayer(), source, message.decoratedContent());
|
||||
+ return componentFuture.thenAcceptAsync((result) -> {
|
||||
+ callback.accept(message.withUnsignedContent(result.component()));
|
||||
+ }, executor);
|
||||
+ });
|
||||
+ CompletableFuture<ChatDecorator.Result> componentFuture = chatDecorator.decorate(source.getPlayer(), source, message.decoratedContent());
|
||||
+ source.getChatMessageChainer().append(() -> componentFuture.thenAccept((result) -> callback.accept(message.withUnsignedContent(result.component()))));
|
||||
+ // Paper end
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user