From 0827b6f6bb324dfd27f10a2342d0a84e75537200 Mon Sep 17 00:00:00 2001 From: Nassim Jahnke Date: Sat, 19 Oct 2024 13:17:13 +0200 Subject: [PATCH] Handle player info components in 1.20.5->1.20.3 --- .../viabackwards/protocol/template/Protocol1_98To1_99.java | 1 + .../protocol/v1_20_5to1_20_3/Protocol1_20_5To1_20_3.java | 1 + .../v1_21_2to1_21/rewriter/EntityPacketRewriter1_21_2.java | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/common/src/main/java/com/viaversion/viabackwards/protocol/template/Protocol1_98To1_99.java b/common/src/main/java/com/viaversion/viabackwards/protocol/template/Protocol1_98To1_99.java index 649021c7..77da1cad 100644 --- a/common/src/main/java/com/viaversion/viabackwards/protocol/template/Protocol1_98To1_99.java +++ b/common/src/main/java/com/viaversion/viabackwards/protocol/template/Protocol1_98To1_99.java @@ -87,6 +87,7 @@ final class Protocol1_98To1_99 extends BackwardsProtocol { diff --git a/common/src/main/java/com/viaversion/viabackwards/protocol/v1_21_2to1_21/rewriter/EntityPacketRewriter1_21_2.java b/common/src/main/java/com/viaversion/viabackwards/protocol/v1_21_2to1_21/rewriter/EntityPacketRewriter1_21_2.java index 4e5df52e..0a806352 100644 --- a/common/src/main/java/com/viaversion/viabackwards/protocol/v1_21_2to1_21/rewriter/EntityPacketRewriter1_21_2.java +++ b/common/src/main/java/com/viaversion/viabackwards/protocol/v1_21_2to1_21/rewriter/EntityPacketRewriter1_21_2.java @@ -336,7 +336,7 @@ public final class EntityPacketRewriter1_21_2 extends EntityRewriter { - final BitSet actions = wrapper.passthrough(Types.PROFILE_ACTIONS_ENUM1_21_2); + final BitSet actions = wrapper.passthroughAndMap(Types.PROFILE_ACTIONS_ENUM1_21_2, Types.PROFILE_ACTIONS_ENUM1_19_3); final int entries = wrapper.passthrough(Types.VAR_INT); for (int i = 0; i < entries; i++) { wrapper.passthrough(Types.UUID);