Luke aka SwissalpS
2019-12-25 76a39e71b9f81531e14efd7ec1b0accfefa0fa66
Cleanup duplicate call (#522)

No need to call get_inventory twice
1 files modified
2 ■■■ changed files
technic/machines/other/injector.lua 2 ●●● patch | view | raw | blame | history
technic/machines/other/injector.lua
@@ -95,7 +95,7 @@
            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)