mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-02 05:02:10 -07:00
Fix command block async message (again) (#10082)
This commit is contained in:
@@ -2137,7 +2137,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
- callback.accept(message.withUnsignedContent(component));
|
- callback.accept(message.withUnsignedContent(component));
|
||||||
+ // Paper start
|
+ // Paper start
|
||||||
+ CompletableFuture<ChatDecorator.Result> componentFuture = chatDecorator.decorate(source.getPlayer(), source, message.decoratedContent());
|
+ 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
|
+ // Paper end
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user