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_chests/common.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'technic_chests') diff --git a/technic_chests/common.lua b/technic_chests/common.lua index 32b34eb..1241c5e 100644 --- a/technic_chests/common.lua +++ b/technic_chests/common.lua @@ -13,7 +13,8 @@ technic.chests.tube = { can_insert = function(pos, node, stack, direction) local meta = minetest.get_meta(pos) local inv = meta:get_inventory() - return inv:room_for_item("main",stack) + local onestack = stack:peek_item(1) + return inv:room_for_item("main", onestack) end, input_inventory = "main", connect_sides = {left=1, right=1, front=1, back=1, top=1, bottom=1}, -- cgit v1.2.3