[technic] machines/register/recipes.lua: Clean up check for

'unified_inventory'.
This commit is contained in:
AntumDeluge 2016-09-06 04:21:37 -07:00
parent f3c139b182
commit 39ae296368

View File

@ -51,15 +51,13 @@ local function register_recipe(typename, data)
end
technic.recipes[typename].recipes[index] = recipe
if minetest.get_modpath("unified_inventory") then
if unified_inventory and technic.recipes[typename].output_size == 1 then
unified_inventory.register_craft({
type = typename,
output = data.output,
items = data.input,
width = 0,
})
end
if have_ui and technic.recipes[typename].output_size == 1 then
unified_inventory.register_craft({
type = typename,
output = data.output,
items = data.input,
width = 0,
})
end
end