PacketType.Play.Server.PLAYER_INFO_REMOVE is associated to PacketPlayOutRecipes
diogotcorreia opened this issue ยท 0 comments
- This issue is not solved in a development build
Describe the bug
Seems like PacketType.Play.Server.PLAYER_INFO_REMOVE
is being associated with PacketPlayOutRecipes
on 1.20.4, making packet handlers throw exceptions since they start handling packets they are not supposed to.
Sample log: https://pastebin.com/EErzajTU
To Reproduce
Steps to reproduce the behavior:
- Place ProtocolLib b736 on a Paper 1.20.4 server
- Check the class of
PacketType.Play.Server.PLAYER_INFO_REMOVE
(using a debugger)
Expected behavior
PacketTypes should have the correct classes associated with them.
Version Info
https://pastebin.com/qKvqcADh
Additional context
I have validated that this is caused by commit 6845acd (build 734) - the 1.21.3 update.
This does not happen with 1.20.6 or above (presumably because the way the packet registry is constructed changes in that version)