mirror of
https://github.com/minetest-mods/unified_inventory.git
synced 2024-12-29 20:20:23 +01:00
Merge pull request #83 from FozLand/issue_82
Fix bug in usages. Closes #82
This commit is contained in:
commit
4a22f8e4da
2
api.lua
2
api.lua
@ -135,7 +135,7 @@ minetest.after(0.01, function()
|
|||||||
for _, recipes in pairs(unified_inventory.crafts_for.recipe) do
|
for _, recipes in pairs(unified_inventory.crafts_for.recipe) do
|
||||||
for _, recipe in ipairs(recipes) do
|
for _, recipe in ipairs(recipes) do
|
||||||
local ingredient_items = {}
|
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)
|
local matches_spec = unified_inventory.canonical_item_spec_matcher(spec)
|
||||||
for _, name in ipairs(unified_inventory.items_list) do
|
for _, name in ipairs(unified_inventory.items_list) do
|
||||||
if matches_spec(name) then
|
if matches_spec(name) then
|
||||||
|
Loading…
Reference in New Issue
Block a user