Test local variable 'have_ui' before calling 'unified_inventory' (#368)

This commit is contained in:
Jordan Irwin 2018-02-16 17:32:47 -08:00 committed by sofar
parent 86fb981b44
commit a5db87f0f1

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