mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-23 07:26:05 +00:00
* Fixes foods crafted from glowing ingredients having incorrect light_overlay (#54768) Fixes #54699 Grown foods used in crafting recipes are moved into the contents of the item they are used to craft. Any grown food with a lighting component was never properly attached to their parent as part of crafting and thus the grown food itself would glow from the containing item instead of the containing item's loc or turf, including when in the user's hand or backpack as per the above issue report. This PR creates a new signal sent to atoms that are used as part of crafting recipes. It then makes lightning components register this signal with their parents. If their parents are "consumed" (ie moved into the newly crafted item's contents) during crafting, the signal handler proc re-registers the signal with the newly crafted item and sets the newly crafted item as the attached parent for that lighting overlay component. This now means that crafting using objects with lighting components is now fully supported including when you craft with objects that were crafted with objects with lightning components * Fixes foods crafted from glowing ingredients having incorrect light_overlay Co-authored-by: Timberpoes <silent_insomnia_pp@hotmail.co.uk>