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 group in pairs(definition.groups) do
|
||||
if def:match("^group:"..group.."$") or
|
||||
((def:find("dye") or def:find("flower")) and
|
||||
group == def:match("^group:.*,("..group..")")) then
|
||||
def:match(".*,"..group.."$") then
|
||||
def = node
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user