From 151ecdcd722929c9183c5b447782d8af50813611 Mon Sep 17 00:00:00 2001 From: Nassim Jahnke Date: Mon, 20 Nov 2023 20:01:06 +0100 Subject: [PATCH] Don't resend pack in 1.20->1.20.2 for 1.20.3 clients --- .../protocols/protocol1_20_2to1_20/Protocol1_20_2To1_20.java | 3 ++- .../protocol1_20_3to1_20_2/Protocol1_20_3To1_20_2.java | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/common/src/main/java/com/viaversion/viaversion/protocols/protocol1_20_2to1_20/Protocol1_20_2To1_20.java b/common/src/main/java/com/viaversion/viaversion/protocols/protocol1_20_2to1_20/Protocol1_20_2To1_20.java index 4d97b483f..2799ba689 100644 --- a/common/src/main/java/com/viaversion/viaversion/protocols/protocol1_20_2to1_20/Protocol1_20_2To1_20.java +++ b/common/src/main/java/com/viaversion/viaversion/protocols/protocol1_20_2to1_20/Protocol1_20_2To1_20.java @@ -30,6 +30,7 @@ import com.viaversion.viaversion.api.protocol.packet.Direction; import com.viaversion.viaversion.api.protocol.packet.PacketWrapper; import com.viaversion.viaversion.api.protocol.packet.State; import com.viaversion.viaversion.api.protocol.remapper.PacketHandler; +import com.viaversion.viaversion.api.protocol.version.ProtocolVersion; import com.viaversion.viaversion.api.rewriter.EntityRewriter; import com.viaversion.viaversion.api.rewriter.ItemRewriter; import com.viaversion.viaversion.api.type.Type; @@ -304,7 +305,7 @@ public final class Protocol1_20_2To1_20 extends AbstractProtocol { wrapper.write(Type.UUID, UUID.randomUUID());