entity.previous_recipe is empty
Posted: Wed Oct 11, 2023 1:31 pm
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.
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.