Merge pull request #8 from minetest-mods/master

[pull] pandorabox from minetest-mods:master
This commit is contained in:
pull[bot] 2019-12-25 21:54:25 +00:00 committed by GitHub
commit b9059ea426
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -95,7 +95,7 @@ minetest.register_node("technic:injector", {
if meta:get_int("splitstacks") == 1 then
stack = stack:peek_item(1)
end
return meta:get_inventory():room_for_item("main", stack)
return inv:room_for_item("main", stack)
end,
insert_object = function(pos, node, stack, direction)
return minetest.get_meta(pos):get_inventory():add_item("main", stack)