Arch666Angel / mods

Angelsmods Repository
https://forums.factorio.com/viewforum.php?f=185
82 stars 60 forks source link

[2.0-prep] amount = "water" in ingredient patch is invalid #1003

Open kirazy opened 2 months ago

kirazy commented 2 months ago

Impacts 2.0-prep branch.

Issue: With the removal of normal and expensive ingredients, the optional ingredients field is now required. Which means that this block of code now gets processed by the recipe builder (RB.build and check_ingredients):

https://github.com/Arch666Angel/mods/blob/4fd9089018ee859cdcc6bece052884055b239d97/angelsrefining/prototypes/override/refining-override-water-treatment.lua#L318-L340

Whereupon it attempts to multiply a string "water" by a number and throws an exception.