[1.0.0] Spidertron recipe has 'normal' property but not 'expensive'
Posted: Fri Aug 14, 2020 1:37 pm
According to the Factorio wiki a recipe prototype should either specify ingredients directly in the recipe or provide it in both normal and expensive difficulty. Both the SeaBlock and CircuitProcessing Mod only check for the 'normal' property and therefore crash when trying to access the spidertron's missing 'expensive' prop.
Example code that crashes because of this:
Example code that crashes because of this:
Code: Select all
if recipe.normal then
func(recipe.normal)
else
func(recipe)
end