diff options
author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2017-04-12 03:11:48 -0400 |
---|---|---|
committer | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2017-04-12 03:11:48 -0400 |
commit | 29881ec85e87e5bc186aded048af596e36e84597 (patch) | |
tree | 1372bbc080f3161014abe40db29e15fa59f43093 /technic_chests/common.lua | |
parent | 7af18188490f514e7768ca0aae7454134f85140f (diff) | |
download | dreambuilder_modpack-29881ec85e87e5bc186aded048af596e36e84597.tar dreambuilder_modpack-29881ec85e87e5bc186aded048af596e36e84597.tar.gz dreambuilder_modpack-29881ec85e87e5bc186aded048af596e36e84597.tar.bz2 dreambuilder_modpack-29881ec85e87e5bc186aded048af596e36e84597.tar.xz dreambuilder_modpack-29881ec85e87e5bc186aded048af596e36e84597.zip |
updated technic and pipeworks
Diffstat (limited to 'technic_chests/common.lua')
-rw-r--r-- | technic_chests/common.lua | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/technic_chests/common.lua b/technic_chests/common.lua index 1241c5e..9a5bc7a 100644 --- a/technic_chests/common.lua +++ b/technic_chests/common.lua @@ -1,4 +1,3 @@ - technic.chests.groups = {snappy=2, choppy=2, oddly_breakable_by_hand=2, tubedevice=1, tubedevice_receiver=1} technic.chests.groups_noinv = {snappy=2, choppy=2, oddly_breakable_by_hand=2, @@ -13,8 +12,10 @@ technic.chests.tube = { can_insert = function(pos, node, stack, direction) local meta = minetest.get_meta(pos) local inv = meta:get_inventory() - local onestack = stack:peek_item(1) - return inv:room_for_item("main", onestack) + if meta:get_int("splitstacks") == 1 then + stack = stack:peek_item(1) + end + return inv:room_for_item("main",stack) end, input_inventory = "main", connect_sides = {left=1, right=1, front=1, back=1, top=1, bottom=1}, |