From 1507f788ec26a842d8d67cd5390f9a8356363d73 Mon Sep 17 00:00:00 2001 From: Nassim Jahnke Date: Wed, 3 Apr 2024 16:35:47 +0200 Subject: [PATCH] 24w14a --- .../Protocol1_20_3To1_20_5.java | 15 ++------------- gradle.properties | 2 +- gradle/libs.versions.toml | 2 +- 3 files changed, 4 insertions(+), 15 deletions(-) diff --git a/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_20_3to1_20_5/Protocol1_20_3To1_20_5.java b/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_20_3to1_20_5/Protocol1_20_3To1_20_5.java index c5ba09b7..7d15aeca 100644 --- a/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_20_3to1_20_5/Protocol1_20_3To1_20_5.java +++ b/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_20_3to1_20_5/Protocol1_20_3To1_20_5.java @@ -123,19 +123,7 @@ public final class Protocol1_20_3To1_20_5 extends BackwardsProtocol { - System.out.println(wrapper.passthrough(Type.STRING)); // Command - wrapper.passthrough(Type.LONG); // Timestamp - wrapper.passthrough(Type.LONG); // Salt - - final Integer passthrough = wrapper.passthrough(Type.VAR_INT); - System.out.println(passthrough); - if (passthrough != 0) { - return; - } - System.out.println(wrapper.passthrough(Type.VAR_INT)); - System.out.println(wrapper.passthrough(Type.ACKNOWLEDGED_BIT_SET)); - }); + registerServerbound(ServerboundPackets1_20_3.CHAT_COMMAND, ServerboundPackets1_20_5.CHAT_COMMAND_SIGNED); registerClientbound(State.LOGIN, ClientboundLoginPackets.COOKIE_REQUEST.getId(), -1, wrapper -> handleCookieRequest(wrapper, ServerboundLoginPackets.COOKIE_RESPONSE)); cancelClientbound(ClientboundConfigurationPackets1_20_5.RESET_CHAT); // Old clients already reset chat when entering the configuration phase @@ -167,6 +155,7 @@ public final class Protocol1_20_3To1_20_5 extends BackwardsProtocol