Packet Codecs in components cannot serialize Fabric created Dynamic Registries.
MerchantPug opened this issue ยท 3 comments
This affects both 1.20.6 and 24w18a.
To reproduce..
- Add a dynamic registry.
- Create a component that uses this dynamic registry value. Can be a RegistryEntry or not one.
- Add the item to a creative menu with the component.
- Grab the new item from the creative menu.
- Witness
Error sending packet serverbound/minecraft:set_creative_mode_slot
Minimal reproduction repository: https://github.com/MerchantPug/component-minimal-reproduction
This seems to lead to failing to get an int id from the registry.
This will also happen if a mob spawns with something from this component, and that tries syncing to the client.
Closing because I figured out the issue. I forgot to register the component lol.