diff --git a/patches/server/Ensure-commands-are-not-ran-async.patch b/patches/server/Ensure-commands-are-not-ran-async.patch index f07b2740df..a41502eb4e 100644 --- a/patches/server/Ensure-commands-are-not-ran-async.patch +++ b/patches/server/Ensure-commands-are-not-ran-async.patch @@ -122,9 +122,10 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + if (msg.startsWith("/")) { + this.getHandle().connection.handleCommand(msg); + } else { -+ // TODO text filtering ++ final PlayerChatMessage playerChatMessage = PlayerChatMessage.system(msg).withResult(new net.minecraft.network.chat.ChatDecorator.ModernResult(Component.literal(msg), true, false)); + // TODO chat decorating -+ this.getHandle().connection.chat(msg, PlayerChatMessage.system(msg), false); ++ // TODO text filtering ++ this.getHandle().connection.chat(msg, playerChatMessage, false); + } + } + // Paper end