ProtocolLib

3M Downloads

Missing wolf_puglin WolfSoundVariant mapping causes set_entity_data encoding failure

Zzackllack opened this issue · 0 comments

commented
  • 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

  1. Run Purpur latest build v2471 1.21.7 with the latest ProtocolLib dev build v753.
  2. Ensure a wolf loads or spawns and a player joins.
  3. 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

Additional context
This appears to affect any ProtocolLib build prior to adding the new registry keys for WolfSoundVariant in Minecraft 1.21.5+.