Closed vortexthedev closed 3 days ago
This is technically not a bug. The SetProtocol
packet no longer includes a Protocol
enum field. Instead, it now contains a new enum called ClientIntent
. Therefore, this should be considered a feature request for a new enum wrapper for ClientIntent
.
Describe the bug 1.20.6 PacketHandshakingInSetProtocol is using ClientIntent instead of EnumProtocol.
To Reproduce Listen to PacketType.SET_PROTOCOL and try to read protocol:
ProtocolLibrary.getProtocolManager().addPacketListener(new PacketAdapter(plugin, ListenerPriority.LOWEST, PacketType.Handshake.Client.SET_PROTOCOL) { @Override public void onPacketReceiving(PacketEvent event) { PacketType.Protocol state = event.getPacket().getProtocols().read(0); } });