Small simplification
This commit is contained in:
parent
00dd4c6a66
commit
696d84e871
@ -47,8 +47,7 @@ function worktable.craftguide_output_lists(meta, num, items, stackname)
|
|||||||
for node, definition in pairs(minetest.registered_items) do
|
for node, definition in pairs(minetest.registered_items) do
|
||||||
for group in pairs(definition.groups) do
|
for group in pairs(definition.groups) do
|
||||||
if def:match("^group:"..group.."$") or
|
if def:match("^group:"..group.."$") or
|
||||||
((def:find("dye") or def:find("flower")) and
|
def:match(".*,"..group.."$") then
|
||||||
group == def:match("^group:.*,("..group..")")) then
|
|
||||||
def = node
|
def = node
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user