From a5db87f0f12f06fe28160743bc97b1f1fb23ffbb Mon Sep 17 00:00:00 2001
From: Jordan Irwin <antumdeluge@gmail.com>
Date: Sat, 17 Feb 2018 02:32:47 +0100
Subject: [PATCH] Test local variable 'have_ui' before calling 'unified_inventory' (#368)

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

diff --git a/technic/machines/register/recipes.lua b/technic/machines/register/recipes.lua
index d30fd4f..f9e2458 100644
--- a/technic/machines/register/recipes.lua
+++ b/technic/machines/register/recipes.lua
@@ -51,7 +51,7 @@
 	end
 	
 	technic.recipes[typename].recipes[index] = recipe
-	if unified_inventory and technic.recipes[typename].output_size == 1 then
+	if have_ui and technic.recipes[typename].output_size == 1 then
 		unified_inventory.register_craft({
 			type = typename,
 			output = data.output,

--
Gitblit v1.8.0