summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordan Irwin <antumdeluge@gmail.com>2018-02-16 17:32:47 -0800
committersofar <sofar+github@foo-projects.org>2018-02-16 17:32:47 -0800
commita5db87f0f12f06fe28160743bc97b1f1fb23ffbb (patch)
tree3eb9edd140ecc3aa5bb6b640f0383a1de068a81e
parent86fb981b445bc63d564f7903a9a0d48b87a12763 (diff)
Test local variable 'have_ui' before calling 'unified_inventory' (#368)
-rw-r--r--technic/machines/register/recipes.lua2
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,