From 7af18188490f514e7768ca0aae7454134f85140f Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Sun, 9 Apr 2017 20:33:03 -0400 Subject: update pipeworks and technic --- technic/machines/MV/tool_workshop.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'technic/machines/MV') diff --git a/technic/machines/MV/tool_workshop.lua b/technic/machines/MV/tool_workshop.lua index 4076cc1..9219717 100644 --- a/technic/machines/MV/tool_workshop.lua +++ b/technic/machines/MV/tool_workshop.lua @@ -103,7 +103,8 @@ minetest.register_node("technic:tool_workshop", { allow_metadata_inventory_take = technic.machine_inventory_take, tube = { can_insert = function (pos, node, stack, direction) - return minetest.get_meta(pos):get_inventory():room_for_item("src", stack) + local onestack = stack:peek_item(1) + return minetest.get_meta(pos):get_inventory():room_for_item("src", onestack) end, insert_object = function (pos, node, stack, direction) return minetest.get_meta(pos):get_inventory():add_item("src", stack) -- cgit v1.2.3