mirror of
https://github.com/ViaVersion/ViaBackwards.git
synced 2024-11-28 13:15:24 +01:00
Convert chat type in disguised chat packet
This commit is contained in:
parent
deede5347e
commit
c44bc88d2d
@ -241,7 +241,12 @@ public final class Protocol1_20_2To1_20_3 extends BackwardsProtocol<ClientboundP
|
|||||||
registerClientbound(ClientboundPackets1_20_3.ACTIONBAR, this::convertComponent);
|
registerClientbound(ClientboundPackets1_20_3.ACTIONBAR, this::convertComponent);
|
||||||
registerClientbound(ClientboundPackets1_20_3.TITLE_TEXT, this::convertComponent);
|
registerClientbound(ClientboundPackets1_20_3.TITLE_TEXT, this::convertComponent);
|
||||||
registerClientbound(ClientboundPackets1_20_3.TITLE_SUBTITLE, this::convertComponent);
|
registerClientbound(ClientboundPackets1_20_3.TITLE_SUBTITLE, this::convertComponent);
|
||||||
registerClientbound(ClientboundPackets1_20_3.DISGUISED_CHAT, this::convertComponent);
|
registerClientbound(ClientboundPackets1_20_3.DISGUISED_CHAT, wrapper -> {
|
||||||
|
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.SYSTEM_CHAT, this::convertComponent);
|
||||||
registerClientbound(ClientboundPackets1_20_3.OPEN_WINDOW, wrapper -> {
|
registerClientbound(ClientboundPackets1_20_3.OPEN_WINDOW, wrapper -> {
|
||||||
wrapper.passthrough(Type.VAR_INT); // Container id
|
wrapper.passthrough(Type.VAR_INT); // Container id
|
||||||
|
Loading…
Reference in New Issue
Block a user