From afb8384319d1030c1a69ae6a68ea197384a81bc1 Mon Sep 17 00:00:00 2001 From: Nassim Jahnke Date: Tue, 22 Oct 2024 18:42:43 +0200 Subject: [PATCH] Enable bundle feature --- .../protocol/v1_21_2to1_21/Protocol1_21_2To1_21.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/common/src/main/java/com/viaversion/viabackwards/protocol/v1_21_2to1_21/Protocol1_21_2To1_21.java b/common/src/main/java/com/viaversion/viabackwards/protocol/v1_21_2to1_21/Protocol1_21_2To1_21.java index 053b6ed6..484c67ce 100644 --- a/common/src/main/java/com/viaversion/viabackwards/protocol/v1_21_2to1_21/Protocol1_21_2To1_21.java +++ b/common/src/main/java/com/viaversion/viabackwards/protocol/v1_21_2to1_21/Protocol1_21_2To1_21.java @@ -51,6 +51,7 @@ import com.viaversion.viaversion.protocols.v1_21to1_21_2.packet.ServerboundPacke import com.viaversion.viaversion.rewriter.AttributeRewriter; import com.viaversion.viaversion.rewriter.StatisticsRewriter; import com.viaversion.viaversion.rewriter.TagRewriter; +import com.viaversion.viaversion.util.ArrayUtil; import static com.viaversion.viaversion.util.ProtocolUtil.packetTypeMap; @@ -96,6 +97,11 @@ public final class Protocol1_21_2To1_21 extends BackwardsProtocol { + final String[] enabledFeatures = wrapper.read(Types.STRING_ARRAY); + wrapper.write(Types.STRING_ARRAY, ArrayUtil.add(enabledFeatures, "bundle")); + }); + cancelClientbound(ClientboundPackets1_21_2.MOVE_MINECART_ALONG_TRACK); // TODO registerClientbound(State.LOGIN, ClientboundLoginPackets.LOGIN_FINISHED, wrapper -> {