Any ideas on how to remove the green bar?
Thank you!

Code: Select all
script.on_nth_tick(60, function()
local surface = game.surfaces[1]
local labs = surface.find_entities_filtered{type="lab"}
for _, lab in pairs(labs) do
if lab.status == defines.entity_status.working then
local inventory = lab.get_inventory(defines.inventory.lab_input)
for tool_name, tool_count in pairs(inventory.get_contents()) do
inventory.remove({name=tool_name, count=1})
end
end
end
end)