Skip to content

Commit 0ea4317

Browse files
fix kick message encoding
1 parent b6e1ccf commit 0ea4317

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/com/viaversion/aas/codec/packet/common/AbstractSingleChat.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ public void decode(@NotNull ByteBuf byteBuf, ProtocolVersion protocolVersion) th
5757
public void encode(@NotNull ByteBuf byteBuf, ProtocolVersion protocolVersion) throws Exception {
5858
if (protocolVersion.olderThan(ProtocolVersion.v1_20_3)) {
5959
Types.STRING.write(byteBuf, msg.toString());
60+
} else {
61+
Types.TAG.write(byteBuf, msgTag);
6062
}
6163
}
6264
}

0 commit comments

Comments
 (0)