]> git.lizzy.rs Git - xdecor.git/commitdiff
Small simplification
authorkilbith <jeanpatrick.guerrero@gmail.com>
Wed, 6 Jan 2016 15:12:23 +0000 (16:12 +0100)
committerkilbith <jeanpatrick.guerrero@gmail.com>
Wed, 6 Jan 2016 15:20:13 +0000 (16:20 +0100)
worktable.lua

index b47de0488b763d41cb936e9d7cf1e405d79b25e3..9de86bf3d099b9ea98717d23e1b9eb2a813f7a8b 100644 (file)
@@ -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