From a5db87f0f12f06fe28160743bc97b1f1fb23ffbb Mon Sep 17 00:00:00 2001 From: Jordan Irwin Date: Fri, 16 Feb 2018 17:32:47 -0800 Subject: [PATCH] Test local variable 'have_ui' before calling 'unified_inventory' (#368) --- technic/machines/register/recipes.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 @@ local function register_recipe(typename, data) 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,