summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2016-11-27 13:37:29 -0500
committerGitHub <noreply@github.com>2016-11-27 13:37:29 -0500
commit4a22f8e4dafecf1a8c3747cef235a1754e4a012d (patch)
treea73692314f2903839ca5b24efde6c875e6215ac0
parent2e00206f586d2fef2d836a752e1ffdc9460aa190 (diff)
parent020732a954ce63e129dfb4e65152c1072064359f (diff)
Merge pull request #83 from FozLand/issue_82
Fix bug in usages. Closes #82
-rw-r--r--api.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/api.lua b/api.lua
index 9f3ade0..e1b980a 100644
--- a/api.lua
+++ b/api.lua
@@ -135,7 +135,7 @@ minetest.after(0.01, function()
for _, recipes in pairs(unified_inventory.crafts_for.recipe) do
for _, recipe in ipairs(recipes) do
local ingredient_items = {}
- for _, spec in ipairs(recipe.items) do
+ for _, spec in pairs(recipe.items) do
local matches_spec = unified_inventory.canonical_item_spec_matcher(spec)
for _, name in ipairs(unified_inventory.items_list) do
if matches_spec(name) then