summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFoz <fozolo@gmail.com>2016-11-18 16:34:40 -1000
committerFoz <fozolo@gmail.com>2016-11-18 16:34:40 -1000
commit020732a954ce63e129dfb4e65152c1072064359f (patch)
treea55dff1b4177fe9f32f847c88547df82b33cf795
parent5b9a53bf293ee07885a2c1ef35d809d356dd672d (diff)
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