diff --git a/common/src/main/java/com/viaversion/viabackwards/protocol/v1_19_3to1_19_1/rewriter/EntityPacketRewriter1_19_3.java b/common/src/main/java/com/viaversion/viabackwards/protocol/v1_19_3to1_19_1/rewriter/EntityPacketRewriter1_19_3.java index 1eee8dd7..97ffe708 100644 --- a/common/src/main/java/com/viaversion/viabackwards/protocol/v1_19_3to1_19_1/rewriter/EntityPacketRewriter1_19_3.java +++ b/common/src/main/java/com/viaversion/viabackwards/protocol/v1_19_3to1_19_1/rewriter/EntityPacketRewriter1_19_3.java @@ -28,7 +28,6 @@ import com.viaversion.viaversion.api.minecraft.signature.storage.ChatSession1_19 import com.viaversion.viaversion.api.protocol.packet.PacketWrapper; import com.viaversion.viaversion.api.protocol.remapper.PacketHandlers; import com.viaversion.viaversion.api.type.Types; -import com.viaversion.viaversion.api.type.types.BitSetType; import com.viaversion.viaversion.api.type.types.version.Types1_19; import com.viaversion.viaversion.api.type.types.version.Types1_19_3; import com.viaversion.viaversion.libs.gson.JsonElement; @@ -45,7 +44,6 @@ import org.checkerframework.checker.nullness.qual.Nullable; public final class EntityPacketRewriter1_19_3 extends EntityRewriter { - private static final BitSetType PROFILE_ACTIONS_ENUM_TYPE = new BitSetType(6); private static final int[] PROFILE_ACTIONS = {2, 3, 4, 5}; // Ignore initialize chat; add player already handled before private static final int ADD_PLAYER = 0; private static final int INITIALIZE_CHAT = 1; @@ -123,7 +121,7 @@ public final class EntityPacketRewriter1_19_3 extends EntityRewriter { wrapper.cancel(); - final BitSet actions = wrapper.read(PROFILE_ACTIONS_ENUM_TYPE); + final BitSet actions = wrapper.read(Types.PROFILE_ACTIONS_ENUM1_19_3); final int entries = wrapper.read(Types.VAR_INT); if (actions.get(ADD_PLAYER)) { // Special case, as we need to write everything into one action diff --git a/common/src/main/java/com/viaversion/viabackwards/protocol/v1_20_3to1_20_2/Protocol1_20_3To1_20_2.java b/common/src/main/java/com/viaversion/viabackwards/protocol/v1_20_3to1_20_2/Protocol1_20_3To1_20_2.java index 40b72057..9fdc0ae0 100644 --- a/common/src/main/java/com/viaversion/viabackwards/protocol/v1_20_3to1_20_2/Protocol1_20_3To1_20_2.java +++ b/common/src/main/java/com/viaversion/viabackwards/protocol/v1_20_3to1_20_2/Protocol1_20_3To1_20_2.java @@ -283,7 +283,7 @@ public final class Protocol1_20_3To1_20_2 extends BackwardsProtocol { - final BitSet actions = wrapper.passthrough(Types.PROFILE_ACTIONS_ENUM); + final BitSet actions = wrapper.passthrough(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); @@ -416,4 +416,4 @@ public final class Protocol1_20_3To1_20_2 extends BackwardsProtocol { - final BitSet actions = wrapper.passthrough(Types.PROFILE_ACTIONS_ENUM); + final BitSet actions = wrapper.passthrough(Types.PROFILE_ACTIONS_ENUM1_21_2); final int entries = wrapper.passthrough(Types.VAR_INT); for (int i = 0; i < entries; i++) { wrapper.passthrough(Types.UUID);