mirror of
https://github.com/ViaVersion/ViaBackwards.git
synced 2024-11-02 09:09:55 +01:00
Fix 1.12 chat reading
This commit is contained in:
parent
efd435e908
commit
f75420a642
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user