From c44bc88d2d743fb901f2fa7a7910a900808d004f Mon Sep 17 00:00:00 2001 From: Nassim Jahnke Date: Thu, 7 Dec 2023 10:11:18 +0100 Subject: [PATCH] Convert chat type in disguised chat packet --- .../protocol1_20_2to1_20_3/Protocol1_20_2To1_20_3.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_20_2to1_20_3/Protocol1_20_2To1_20_3.java b/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_20_2to1_20_3/Protocol1_20_2To1_20_3.java index b47d3c9f..84cdf228 100644 --- a/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_20_2to1_20_3/Protocol1_20_2To1_20_3.java +++ b/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_20_2to1_20_3/Protocol1_20_2To1_20_3.java @@ -241,7 +241,12 @@ public final class Protocol1_20_2To1_20_3 extends BackwardsProtocol { + convertComponent(wrapper); + wrapper.passthrough(Type.VAR_INT); // Chat type + convertComponent(wrapper); // Name + convertOptionalComponent(wrapper); // Target name + }); registerClientbound(ClientboundPackets1_20_3.SYSTEM_CHAT, this::convertComponent); registerClientbound(ClientboundPackets1_20_3.OPEN_WINDOW, wrapper -> { wrapper.passthrough(Type.VAR_INT); // Container id