Event for on_pre_recipe_changed / on_recipe_changed
Posted: Fri Oct 11, 2019 10:52 am
For my mod https://mods.factorio.com/mod/better-air-filtering I could use a callback for when the recipe of a crafting machine changes. Specifically for detecting when fluid that is in the machine will be destroyed. The added machines contain a representation of pollution in liquid form, and need to release it back into the atmosphere to prevent loopholes. The only scenario I know of where liquid can still be destroyed without a callback, is when the recipe is changed from the GUI.
Currently I use one fixed recipe per machine to prevent this, which is rather limiting toward my future plans.
Let me know if I maybe missed this feature. Or if you like this idea, give it a bump .
Currently I use one fixed recipe per machine to prevent this, which is rather limiting toward my future plans.
Let me know if I maybe missed this feature. Or if you like this idea, give it a bump .