factoriolib / flib

A set of high-quality, commonly-used utilities for creating Factorio mods.
https://mods.factorio.com/mod/flib
MIT License
61 stars 15 forks source link

Add map_energy_value #48

Closed Stargateur closed 1 year ago

Stargateur commented 1 year ago

Fix https://github.com/factoriolib/flib/issues/11#issuecomment-636327685 by allowing more than just multiplication. Feel free to not merge as always.

raiguard commented 1 year ago

Thanks for the PR. However, I don't think that this function is a good fit for flib. The nil check is something that you should be doing in your mod's code anyway.

Additionally, flib is relocating to sourcehut. If you would like to send patches in the future, you can send them to the factorio-mods-devel mailing list.