Arch666Angel / mods

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

Recipe Builder Fallbacks #967

Closed Erkigmo closed 8 months ago

Erkigmo commented 8 months ago

Describe the bug I would like for other mods to override the recipe fallbacks that angel's sets. This would help for compatibility, and I am currently experiencing a bug in PyCoalTBaA, and this would make it a lot easier to fix and would make the game load faster.

KiwiHawk commented 8 months ago

@Erkigmo I believe this should already work. Any fallbacks that you set in data stage shouldn't be overwritten. To test it, I created a simple mod that depends on angelsrefining. In it's data.lua it has this:

angelsmods.functions.RB.set_fallback("item", "t0-pipe", { { "stone-pipe", 3 }, { "pipe", 3 } })

Seems to work as expected! Is there some other scenario that isn't working?

Erkigmo commented 8 months ago

I did not test this. I kind of assumed that it would be overwritten.