SET_PROTOCOL is not working
vortexthedev opened this issue ยท 1 comments
- This issue is not solved in a development build
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); } });