From 963dbdf68117b268af3d0a8be810c9431e1427ea Mon Sep 17 00:00:00 2001 From: SFENCE Date: Mon, 29 Mar 2021 21:59:00 +0200 Subject: [PATCH] Remove dual condition. --- technic/machines/register/recipes.lua | 38 +++++++++++++-------------- 1 file changed, 18 insertions(+), 20 deletions(-) diff --git a/technic/machines/register/recipes.lua b/technic/machines/register/recipes.lua index 5a5c665..ba4a5e1 100644 --- a/technic/machines/register/recipes.lua +++ b/technic/machines/register/recipes.lua @@ -74,26 +74,24 @@ 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; - if (type(result)=="table") then - result = result[1]; - end - local items = table.concat(data.input, ", "); - if have_cg and craftguide.register_craft then - craftguide.register_craft({ - type = typename, - result = result, - items = {items}, - }) - end - if have_i3 then - i3.register_craft({ - type = typename, - result = result, - items = {items}, - }) - end + local result = data.output + if (type(result)=="table") then + result = result[1] + end + local items = table.concat(data.input, ", ") + if have_cg and craftguide.register_craft then + craftguide.register_craft({ + type = typename, + result = result, + items = {items}, + }) + end + if have_i3 then + i3.register_craft({ + type = typename, + result = result, + items = {items}, + }) end end end