summaryrefslogtreecommitdiff
path: root/technic/machines/other/injector.lua
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2017-04-09 20:33:03 -0400
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2017-04-09 20:33:03 -0400
commit7af18188490f514e7768ca0aae7454134f85140f (patch)
tree1e864d4e18428cb5f2dc8fd7e4840c3ad31acddf /technic/machines/other/injector.lua
parentc4ea0a8dd17ee1cbe678c3be811724d9e59747ba (diff)
downloaddreambuilder_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/other/injector.lua')
-rw-r--r--technic/machines/other/injector.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/technic/machines/other/injector.lua b/technic/machines/other/injector.lua
index 7dc5d0c..f803a25 100644
--- a/technic/machines/other/injector.lua
+++ b/technic/machines/other/injector.lua
@@ -69,10 +69,11 @@ minetest.register_node("technic:injector", {
groups = {snappy=2, choppy=2, oddly_breakable_by_hand=2, tubedevice=1, tubedevice_receiver=1},
tube = {
can_insert = function(pos, node, stack, direction)
- return minetest.get_meta(pos):get_inventory():room_for_item("main",stack)
+ local onestack = stack:peek_item(1)
+ return minetest.get_meta(pos):get_inventory():room_for_item("main", onestack)
end,
insert_object = function(pos, node, stack, direction)
- return minetest.get_meta(pos):get_inventory():add_item("main",stack)
+ return minetest.get_meta(pos):get_inventory():add_item("main", stack)
end,
connect_sides = {left=1, right=1, front=1, back=1, top=1, bottom=1},
},