mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 23:38:25 +01:00
Fix command block async message (again) (#10082)
This commit is contained in:
parent
fab261ae0b
commit
2461bcfe65
1 changed files with 1 additions and 1 deletions
|
@ -2137,7 +2137,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||
- callback.accept(message.withUnsignedContent(component));
|
||||
+ // Paper start
|
||||
+ CompletableFuture<ChatDecorator.Result> componentFuture = chatDecorator.decorate(source.getPlayer(), source, message.decoratedContent());
|
||||
+ source.getChatMessageChainer().append(() -> componentFuture.thenAccept((result) -> callback.accept(message.withUnsignedContent(result.component()))));
|
||||
+ source.getChatMessageChainer().append(componentFuture, (result) -> callback.accept(message.withUnsignedContent(result.component())));
|
||||
+ // Paper end
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue