From 0e10e8360d6fa5aa6cbb86870b6244e8818d7dc8 Mon Sep 17 00:00:00 2001
From: coil <51716565+coil0@users.noreply.github.com>
Date: Sun, 15 Mar 2020 17:27:36 +0100
Subject: [PATCH] Fix crash when placing cable plates (#534)

---
 technic/machines/other/injector.lua |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

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 @@
 			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)

--
Gitblit v1.8.0