Fix 1.12 chat reading

This commit is contained in:
KennyTV 2020-06-27 22:08:22 +02:00
parent efd435e908
commit f75420a642
No known key found for this signature in database
GPG Key ID: 6BE3B555EBC5982B

View File

@ -41,9 +41,6 @@ public class ChatPackets1_12 extends Rewriter<Protocol1_11_1To1_12> {
protocol.registerOutgoing(ClientboundPackets1_12.CHAT_MESSAGE, new PacketRemapper() { protocol.registerOutgoing(ClientboundPackets1_12.CHAT_MESSAGE, new PacketRemapper() {
@Override @Override
public void registerMap() { public void registerMap() {
map(Type.COMPONENT); // 0 - Json Data
map(Type.BYTE); // 1 - Position
handler(wrapper -> { handler(wrapper -> {
JsonElement element = wrapper.passthrough(Type.COMPONENT); JsonElement element = wrapper.passthrough(Type.COMPONENT);
componentRewriter.processText(element); componentRewriter.processText(element);