functions.lua, replace set_combinator
function set_combinator(entity)
local surface_name = get_surface_name(entity.surface)
if script.active_mods["AdeptusRiftbreaker"] then surface_name = "riftbreaker" end
if not storage.pool[surface_name] then return end
local surface_content = storage.pool[surface_name]
local control = entity.get_control_behavior()
if not control then return end
local group_name = "QuantumResourceDistribution#" .. entity.unit_number
local section = control.get_section(1)
if not section then
control.add_section(group_name)
return
end
local index = 1
section.group = group_name
for i = 1,section.filters_count do
section.clear_slot(i)
end
for name,data in pairs(surface_content) do
if item_prototype(name) then
if data['amount'] > 0 then
section.set_slot(index,{value=name,min=data['amount']})
index = index + 1
end
end
end
end