Commit 129328c3 authored by Fedja Beader's avatar Fedja Beader
Browse files

invnet: add drawer support

parent 929ee4b8
......@@ -202,6 +202,20 @@ core.register_on_punchnode(function(pos, node)
invnet.machines[machine_index] = m
l:info("Added refinery")
elseif node.name == "drawers:controller" then
local inv = core.get_inventory(pos)
local m = {}
if inv["src"] then
m.input_list_name = "src"
end
if m.input_list_name then
m.pos = pos
invnet.machines[machine_index] = m
l:info("Added drawer controller. Use .invnet config to [re]configure.")
else
l:err(" \"src\" is not an input list?! Skipped adding.")
end
elseif node.name == "pipeworks:autocrafter" then
local inv = core.get_inventory(pos)
local item_string = inv["output"][1]:get_name()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment