From 8e886a3c0a658bdc36f23f552ab4de0a8958f77a Mon Sep 17 00:00:00 2001 From: Nassim Jahnke Date: Thu, 28 Jul 2022 00:38:37 +0200 Subject: [PATCH] Fix chat message api using overlay --- 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 c53c95ddd7..8c1a36d0d5 100644 --- a/patches/server/Adventure.patch +++ b/patches/server/Adventure.patch @@ -2732,7 +2732,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + public void sendMessage(final net.kyori.adventure.identity.Identity identity, final net.kyori.adventure.text.Component message, final net.kyori.adventure.audience.MessageType type) { + if (getHandle().connection == null) return; + final net.minecraft.core.Registry chatTypeRegistry = this.getHandle().level.registryAccess().registryOrThrow(net.minecraft.core.Registry.CHAT_TYPE_REGISTRY); -+ this.getHandle().connection.send(new net.minecraft.network.protocol.game.ClientboundSystemChatPacket(message, type == net.kyori.adventure.audience.MessageType.SYSTEM)); ++ this.getHandle().connection.send(new net.minecraft.network.protocol.game.ClientboundSystemChatPacket(message, false)); + } + + @Override