From 8e077f8b02397148e2eb846c58e6d2f62e73b28b Mon Sep 17 00:00:00 2001 From: Luke aka SwissalpS Date: Thu, 19 Dec 2019 16:56:35 +0100 Subject: [PATCH] cleanup duplicate call no need to call get_inventory twice --- technic/machines/other/injector.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/technic/machines/other/injector.lua b/technic/machines/other/injector.lua index c98be59..193d051 100644 --- a/technic/machines/other/injector.lua +++ b/technic/machines/other/injector.lua @@ -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)