mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-06-26 06:34:53 +02:00
parent
7ab0c41be6
commit
40f5cb6e71
|
@ -194,7 +194,7 @@ public final class Protocol1_19To1_18_2 extends AbstractProtocol<ClientboundPack
|
|||
map(Type.COMPONENT); // Message
|
||||
handler(wrapper -> {
|
||||
int type = wrapper.read(Type.BYTE);
|
||||
wrapper.write(Type.VAR_INT, type == 2 ? 1 : 0);
|
||||
wrapper.write(Type.VAR_INT, type == 0 ? 1 : type);
|
||||
});
|
||||
read(Type.UUID); // Sender
|
||||
}
|
||||
|
|
|
@ -55,7 +55,7 @@ public final class EntityPackets extends EntityRewriter<Protocol1_19To1_18_2> {
|
|||
" \"value\": [\n" +
|
||||
" {\n" +
|
||||
" \"name\": \"minecraft:system\",\n" +
|
||||
" \"id\": 0,\n" +
|
||||
" \"id\": 1,\n" +
|
||||
" \"element\": {\n" +
|
||||
" \"chat\": {},\n" +
|
||||
" \"narration\": {\n" +
|
||||
|
@ -65,7 +65,7 @@ public final class EntityPackets extends EntityRewriter<Protocol1_19To1_18_2> {
|
|||
" },\n" +
|
||||
" {\n" +
|
||||
" \"name\": \"minecraft:game_info\",\n" +
|
||||
" \"id\": 1,\n" +
|
||||
" \"id\": 2,\n" +
|
||||
" \"element\": {\n" +
|
||||
" \"overlay\": {}\n" +
|
||||
" }\n" +
|
||||
|
|
Loading…
Reference in New Issue
Block a user