mirror of
https://github.com/minetest-mods/drawers.git
synced 2024-12-22 12:32:22 +01:00
controller: Kick off sorting after pipeworks inserted an item (#40)
Controllers in unloaded/inactive areas would become jammed otherwise Co-authored-by: BuckarooBanzay <39065740+BuckarooBanzay@users.noreply.github.com>
This commit is contained in:
parent
4e99f7db71
commit
0fc267da84
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user