From 76a39e71b9f81531e14efd7ec1b0accfefa0fa66 Mon Sep 17 00:00:00 2001 From: Luke aka SwissalpS Date: Wed, 25 Dec 2019 22:23:34 +0100 Subject: [PATCH] Cleanup duplicate call (#522) 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)