Fixed Bungeecord madness (#2934)

Co-authored-by: qlow <info@qlow.eu>
This commit is contained in:
qlow 2022-06-09 17:10:22 +02:00 committed by GitHub
parent 7ab0c41be6
commit 40f5cb6e71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -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
}

View File

@ -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" +