From ea2fac0788e7978bccf5a3b5210770fdec7b7157 Mon Sep 17 00:00:00 2001 From: Nassim Jahnke Date: Tue, 19 Sep 2023 13:20:19 +1000 Subject: [PATCH] Handle configuration start TODO: Check whether all the necessary data for the join game packet is always expected by the client or if we need to cache it from the initial login --- .../protocol/protocol1_20to1_20_2/Protocol1_20To1_20_2.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_20to1_20_2/Protocol1_20To1_20_2.java b/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_20to1_20_2/Protocol1_20To1_20_2.java index 65ccb19c..8fc7f5ec 100644 --- a/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_20to1_20_2/Protocol1_20To1_20_2.java +++ b/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_20to1_20_2/Protocol1_20To1_20_2.java @@ -91,7 +91,11 @@ public final class Protocol1_20To1_20_2 extends BackwardsProtocol { + wrapper.cancel(); + // TODO: Check whether all the necessary data for the join game packet is always expected by the client or if we need to cache it from the initial login + wrapper.user().put(new ConfigurationPacketStorage()); + }); cancelClientbound(ClientboundPackets1_20_2.PONG_RESPONSE); // Some can be directly remapped to play packets, others need to be queued