Code: Select all
for category_name,category in pairs(data.raw) do
    for entity_name,entity in pairs(category) do
        if type(entity) == "table" and type(entity.energy_source) == "table" then
            entity.energy_source.type = "void"
        end
    end
endIt makes a bit of sense for vehicles, since VOID would take away their ability to get fuel bonuses.

