Mirror von
https://github.com/ViaVersion/ViaBackwards.git
synchronisiert 2024-12-27 08:30:10 +01:00
Fix 1.12 chat reading
Dieser Commit ist enthalten in:
Ursprung
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);
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren