diff --git a/mods/mp_technic/technic/machines/register/recipes.lua b/mods/mp_technic/technic/machines/register/recipes.lua index 7abfee26..f9e24587 100644 --- a/mods/mp_technic/technic/machines/register/recipes.lua +++ b/mods/mp_technic/technic/machines/register/recipes.lua @@ -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