Fix forge chat event not fired (#1091)

This commit is contained in:
IzzelAliz 2023-09-17 09:29:33 +08:00
parent 97bc12d44f
commit 92585b6e8f

View File

@ -1012,7 +1012,7 @@ public abstract class ServerPlayNetHandlerMixin implements ServerPlayNetHandlerB
}
CompletableFuture<FilteredText> completablefuture = this.filterTextPacket(playerchatmessage.signedContent());
CompletableFuture<Component> completablefuture1 = this.server.getChatDecorator().decorate(this.player, playerchatmessage.decoratedContent());
CompletableFuture<Component> completablefuture1 = ForgeHooks.getServerChatSubmittedDecorator().decorate(this.player, playerchatmessage.decoratedContent());
this.chatMessageChain.append((executor) -> {
return CompletableFuture.allOf(completablefuture, completablefuture1).thenAcceptAsync((ovoid) -> {