mirror of
https://github.com/sirrobzeroone/elepower.git
synced 2024-08-20 21:04:06 +02:00
fix crafting recipe detection for wood nodes
This commit is contained in:
parent
ae58f848f7
commit
b853f52bd6
@ -244,9 +244,11 @@ minetest.after(0.2, function ()
|
|||||||
local assoc = {}
|
local assoc = {}
|
||||||
for _,wood in ipairs(wood_nodes) do
|
for _,wood in ipairs(wood_nodes) do
|
||||||
local recipes = minetest.get_all_craft_recipes(wood)
|
local recipes = minetest.get_all_craft_recipes(wood)
|
||||||
for _, recipe in ipairs(recipes) do
|
if recipes then
|
||||||
if recipe.items and #recipe.items == 1 then
|
for _, recipe in ipairs(recipes) do
|
||||||
assoc[recipe.items[1]] = wood
|
if recipe.items and #recipe.items == 1 then
|
||||||
|
assoc[recipe.items[1]] = wood
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user