3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-11-03 14:50:30 +01:00

Fixed Bungeecord madness (#2934)

Co-authored-by: qlow <info@qlow.eu>
Dieser Commit ist enthalten in:
qlow 2022-06-09 17:10:22 +02:00 committet von GitHub
Ursprung 7ab0c41be6
Commit 40f5cb6e71
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23
2 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen

Datei anzeigen

@ -194,7 +194,7 @@ public final class Protocol1_19To1_18_2 extends AbstractProtocol<ClientboundPack
map(Type.COMPONENT); // Message map(Type.COMPONENT); // Message
handler(wrapper -> { handler(wrapper -> {
int type = wrapper.read(Type.BYTE); 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 read(Type.UUID); // Sender
} }

Datei anzeigen

@ -55,7 +55,7 @@ public final class EntityPackets extends EntityRewriter<Protocol1_19To1_18_2> {
" \"value\": [\n" + " \"value\": [\n" +
" {\n" + " {\n" +
" \"name\": \"minecraft:system\",\n" + " \"name\": \"minecraft:system\",\n" +
" \"id\": 0,\n" + " \"id\": 1,\n" +
" \"element\": {\n" + " \"element\": {\n" +
" \"chat\": {},\n" + " \"chat\": {},\n" +
" \"narration\": {\n" + " \"narration\": {\n" +
@ -65,7 +65,7 @@ public final class EntityPackets extends EntityRewriter<Protocol1_19To1_18_2> {
" },\n" + " },\n" +
" {\n" + " {\n" +
" \"name\": \"minecraft:game_info\",\n" + " \"name\": \"minecraft:game_info\",\n" +
" \"id\": 1,\n" + " \"id\": 2,\n" +
" \"element\": {\n" + " \"element\": {\n" +
" \"overlay\": {}\n" + " \"overlay\": {}\n" +
" }\n" + " }\n" +