-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add update_recycling_recipe function (#244)
* Add update_recycling_recipe function Updates recycling recipe outputs, and tries to update icon if an item of the same name as the original recipe exists (useful, for example, when assembling machines have their colors changed). Can handle either single recipes or tables of multiple recipes. * Add energy_required update to update_recycling_recipe_single * Add to recycling update functions Add update_recycling_recipe_to_self_recipe, update_recycling_recipe_from_recipe. Improve icon updating when sourcing from icons. Revise variable names for improved clarity and consistency. * Update recipe-functions.lua Change the self-recipe update to more closely resemble the vanilla version's output. Added logic to account for the possibility of a source recipe outputting key item in an amount other than 1. * Fix crash caused by fluid ingredients leaving nil entry on results table * Fix crash caused by missing local variable * Updating changelog --------- Co-authored-by: KiwiHawk <[email protected]>
- Loading branch information
Showing
2 changed files
with
237 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters