Remove dual condition.
This commit is contained in:
parent
7600b7ee49
commit
963dbdf681
|
@ -74,12 +74,11 @@ local function register_recipe(typename, data)
|
|||
})
|
||||
end
|
||||
if (have_cg or have_i3) and technic.recipes[typename].output_size == 1 then
|
||||
if (have_cg or have_i3) then
|
||||
local result = data.output;
|
||||
local result = data.output
|
||||
if (type(result)=="table") then
|
||||
result = result[1];
|
||||
result = result[1]
|
||||
end
|
||||
local items = table.concat(data.input, ", ");
|
||||
local items = table.concat(data.input, ", ")
|
||||
if have_cg and craftguide.register_craft then
|
||||
craftguide.register_craft({
|
||||
type = typename,
|
||||
|
@ -96,7 +95,6 @@ local function register_recipe(typename, data)
|
|||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
function technic.register_recipe(typename, data)
|
||||
minetest.after(0.01, register_recipe, typename, data) -- Handle aliases
|
||||
|
|
Loading…
Reference in New Issue