entity.previous_recipe is empty

Place to get help with not working mods / modding interface.
Post Reply
User avatar
moon69
Fast Inserter
Fast Inserter
Posts: 181
Joined: Sun Sep 18, 2016 6:53 pm
Contact:

entity.previous_recipe is empty

Post by moon69 »

Has the furnace LuaEntity.html#previous_recipe functionality changed?

I thought it used to show the previously crafted recipe even if it was the same as the currently crafted recipe from LuaEntity.html#get_recipe. EG: after each craft of a copper-plate, the previous_recipe would update to copper-plate.

Now it seems previous_recipe does not update until crafting stops or a different recipe is crafted.

This means that a constantly fed furnace might have a previous_recipe == nil even after 1000s of crafts, or that a one-off craft of a different recipe still shows in previous_recipe many game-hours later. This seems weird to me.

Post Reply

Return to “Modding help”