[technic] machines/register/recipes.lua: Clean up check for
'unified_inventory'.
This commit is contained in:
parent
f3c139b182
commit
39ae296368
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user