Max Rate Calculator


Calculates maximum consumption/prodution rates of assemblers, plants, etc.

Utilities
3 years ago
0.15 - 1.1
112K

g previous_recipe for smelters

4 years ago

Hi, thanks for making this great mod! I noticed that the mod says smelters don't have a recipe after they've finished smelting their ingredients. Are you aware of previous_recipe? See

https://lua-api.factorio.com/latest/LuaEntity.html#LuaEntity.previous_recipe

I replaced every occurrence of entity.get_recipe() with (entity.get_recipe() or entity.previous_recipe) in your code and it works great now.

4 years ago

Thanks, I’ll put that in!
I’ve been trying to come up with a way to look at neighboring machines to guess at the recipe, but your solution will help nicely.

New response