From 2461bcfe657f56f04b20013d09717f1796ed9986 Mon Sep 17 00:00:00 2001 From: Jake Potrebic Date: Wed, 27 Dec 2023 01:30:15 -0800 Subject: [PATCH] Fix command block async message (again) (#10082) --- patches/server/Adventure.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/server/Adventure.patch b/patches/server/Adventure.patch index f7ef5adca7..f09fdcf28b 100644 --- a/patches/server/Adventure.patch +++ b/patches/server/Adventure.patch @@ -2137,7 +2137,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 - callback.accept(message.withUnsignedContent(component)); + // Paper start + CompletableFuture 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 }