forked from mtcontrib/pipeworks
allow moving virtual items within the crafting grid
This commit is contained in:
parent
e92ac0f7b3
commit
3a46c1266a
@ -247,16 +247,18 @@ minetest.register_node("pipeworks:autocrafter", {
|
|||||||
stack:set_count(count)
|
stack:set_count(count)
|
||||||
if from_list == "recipe" then
|
if from_list == "recipe" then
|
||||||
inv:set_stack(from_list, from_index, ItemStack(""))
|
inv:set_stack(from_list, from_index, ItemStack(""))
|
||||||
after_recipe_change(pos, inv)
|
end
|
||||||
return 0
|
if to_list == "recipe" then
|
||||||
elseif to_list == "recipe" then
|
|
||||||
add_virtual_item(inv, to_list, to_index, stack)
|
add_virtual_item(inv, to_list, to_index, stack)
|
||||||
|
end
|
||||||
|
|
||||||
|
if from_list == "recipe" or to_list == "recipe" then
|
||||||
after_recipe_change(pos, inv)
|
after_recipe_change(pos, inv)
|
||||||
return 0
|
return 0
|
||||||
else
|
end
|
||||||
|
|
||||||
after_inventory_change(pos, inv)
|
after_inventory_change(pos, inv)
|
||||||
return stack:get_count()
|
return stack:get_count()
|
||||||
end
|
|
||||||
end,
|
end,
|
||||||
on_timer = run_autocrafter
|
on_timer = run_autocrafter
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user