diff options
author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2017-04-09 20:33:03 -0400 |
---|---|---|
committer | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2017-04-09 20:33:03 -0400 |
commit | 7af18188490f514e7768ca0aae7454134f85140f (patch) | |
tree | 1e864d4e18428cb5f2dc8fd7e4840c3ad31acddf /technic/machines/register | |
parent | c4ea0a8dd17ee1cbe678c3be811724d9e59747ba (diff) | |
download | dreambuilder_modpack-7af18188490f514e7768ca0aae7454134f85140f.tar dreambuilder_modpack-7af18188490f514e7768ca0aae7454134f85140f.tar.gz dreambuilder_modpack-7af18188490f514e7768ca0aae7454134f85140f.tar.bz2 dreambuilder_modpack-7af18188490f514e7768ca0aae7454134f85140f.tar.xz dreambuilder_modpack-7af18188490f514e7768ca0aae7454134f85140f.zip |
update pipeworks and technic
Diffstat (limited to 'technic/machines/register')
-rw-r--r-- | technic/machines/register/battery_box.lua | 5 | ||||
-rw-r--r-- | technic/machines/register/generator.lua | 3 | ||||
-rw-r--r-- | technic/machines/register/machine_base.lua | 3 |
3 files changed, 7 insertions, 4 deletions
diff --git a/technic/machines/register/battery_box.lua b/technic/machines/register/battery_box.lua index 83bedf2..2a45b13 100644 --- a/technic/machines/register/battery_box.lua +++ b/technic/machines/register/battery_box.lua @@ -50,10 +50,11 @@ local tube = { end local meta = minetest.get_meta(pos) local inv = meta:get_inventory() + local onestack = stack:peek_item(1) if direction.y > 0 then - return inv:room_for_item("src", stack) + return inv:room_for_item("src", onestack) else - return inv:room_for_item("dst", stack) + return inv:room_for_item("dst", onestack) end end, connect_sides = {left=1, right=1, back=1, top=1, bottom=1}, diff --git a/technic/machines/register/generator.lua b/technic/machines/register/generator.lua index 2cdc336..f3ada1f 100644 --- a/technic/machines/register/generator.lua +++ b/technic/machines/register/generator.lua @@ -9,7 +9,8 @@ local tube = { can_insert = function(pos, node, stack, direction) local meta = minetest.get_meta(pos) local inv = meta:get_inventory() - return inv:room_for_item("src", stack) + local onestack = stack:peek_item(1) + return inv:room_for_item("src", onestack) end, connect_sides = {left=1, right=1, back=1, top=1, bottom=1}, } diff --git a/technic/machines/register/machine_base.lua b/technic/machines/register/machine_base.lua index 8cf851b..d479773 100644 --- a/technic/machines/register/machine_base.lua +++ b/technic/machines/register/machine_base.lua @@ -10,7 +10,8 @@ local tube = { can_insert = function(pos, node, stack, direction) local meta = minetest.get_meta(pos) local inv = meta:get_inventory() - return inv:room_for_item("src", stack) + local onestack = stack:peek_item(1) + return inv:room_for_item("src", onestack) end, connect_sides = {left = 1, right = 1, back = 1, top = 1, bottom = 1}, } |