Factorio-Stdlib
Factorio-Stdlib copied to clipboard
Added remove_ingredient to add_ingredient
When adding ingredients, it WILL crash the game if duplicate entries exist, under most circumstances. The quick and dirty fix is to remove it before adding it, a more complicated check would involve looking for it and updating an existing entry instead.
I just added the remove_ingredient so that the function is at least usable.