Cleanup duplicate call (#522)

No need to call get_inventory twice
This commit is contained in:
Luke aka SwissalpS 2019-12-25 22:23:34 +01:00 committed by SmallJoker
parent 08b660ba99
commit 76a39e71b9
1 changed files with 1 additions and 1 deletions

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)