diff options
author | Jordan Irwin <antumdeluge@gmail.com> | 2018-02-16 17:32:47 -0800 |
---|---|---|
committer | sofar <sofar+github@foo-projects.org> | 2018-02-16 17:32:47 -0800 |
commit | a5db87f0f12f06fe28160743bc97b1f1fb23ffbb (patch) | |
tree | 3eb9edd140ecc3aa5bb6b640f0383a1de068a81e | |
parent | 86fb981b445bc63d564f7903a9a0d48b87a12763 (diff) |
Test local variable 'have_ui' before calling 'unified_inventory' (#368)
-rw-r--r-- | 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 @@ 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, |