https://mods.factorio.com/mod/Vehicle_R ... 000b76068b
Can you please make this
Code: Select all
local bool_sucess = equipment.get_energy_from_accumulator(accumulator_name, energy)
If here is no accumulator with this name or the accumulator has less than this amount of energy then it returns false.
It can be very useful for mods with lua control, where the energy will be checked for several entities per tick and if there is enough energy then the code will be run.