summaryrefslogtreecommitdiff
path: root/api.lua
diff options
context:
space:
mode:
Diffstat (limited to 'api.lua')
-rw-r--r--api.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/api.lua b/api.lua
index 3a694b4..c06f7ab 100644
--- a/api.lua
+++ b/api.lua
@@ -14,16 +14,14 @@ minetest.after(0.01, function()
table.insert(unified_inventory.items_list, name)
local all_names = rev_aliases[name] or {}
table.insert(all_names, name)
- local all_recipes = {}
for _, name in ipairs(all_names) do
local recipes = minetest.get_all_craft_recipes(name)
if recipes then
for _, recipe in ipairs(recipes) do
- table.insert(all_recipes, recipe)
+ unified_inventory.register_craft(recipe)
end
end
end
- unified_inventory.crafts_table[name] = all_recipes
end
end
table.sort(unified_inventory.items_list)