Missing wolf_puglin WolfSoundVariant mapping causes set_entity_data encoding failure
- [x] This issue is not solved in a development build
Describe the bug When a player joins on Minecraft 1.21.7 with ProtocolLib SNAPSHOT-753, the server throws:
io.netty.handler.codec.EncoderException: Failed to encode packet 'clientbound/minecraft:set_entity_data'
Caused by: java.lang.IllegalArgumentException: Can't find id for 'minecraft:entity.wolf_puglin.ambient'
My guess would be that ProtocolLib’s internal IdMap doesn’t include the “puglin” WolfSoundVariant added in 1.21.5. Without ProtocolLib as a plugin installed this issue does not appear, although logically then certain plugins that require ProtocolLib do not start.
To Reproduce
- Run Purpur latest build v2471 1.21.7 with the latest ProtocolLib dev build v753.
- Ensure a wolf loads or spawns and a player joins.
- Observe the console crash on
clientbound/minecraft:set_entity_data.
Expected behavior
ProtocolLib should recognize and map all new wolf_sound_variant entries (including “puglin”) so that metadata packets encode without errors.
Screenshots N/A (console log provided).
Version Info
- ProtocolLib Version: latest ProtocolLib dev build v753
- Server Version: purpur-1.21.7-2471 (MC: 1.21.7)
- Java Version: 21.0.7
- Dump via
/protocol dump: https://pastebin.com/qknDrsQC - Server Log: https://pastebin.com/8n1994B3
Additional context This appears to affect any ProtocolLib build prior to adding the new registry keys for WolfSoundVariant in Minecraft 1.21.5+.
is this fixed? i have similar error also kicks me when i try to join server
https://mclo.gs/aEvyUhU