diff --git a/lua/controller.lua b/lua/controller.lua index 432b019..25d81f8 100644 --- a/lua/controller.lua +++ b/lua/controller.lua @@ -497,7 +497,12 @@ local function register_controller() def.tube = {} def.tube.insert_object = function(pos, node, stack, tubedir) - return core.get_meta(pos):get_inventory():add_item("src", stack) + -- add stack to inventory + local remaining_stack = core.get_meta(pos):get_inventory():add_item("src", stack) + -- kick off controller work + controller_node_timer(pos) + + return remaining_stack end def.tube.can_insert = function(pos, node, stack, tubedir)