Afforess / Factorio-Stdlib

Factorio Standard Library Project
ISC License
162 stars 45 forks source link

Added remove_ingredient to add_ingredient #152

Open Mernom opened 3 years ago

Mernom commented 3 years ago

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.