]> git.lizzy.rs Git - xdecor.git/blobdiff - worktable.lua
More cleanup
[xdecor.git] / worktable.lua
index 06c04196a6743acf7c9db6223c3b62e5a51bf5ca..a2777177d47fb04449a216cbaf818c8019bdaf85 100644 (file)
@@ -270,7 +270,7 @@ function worktable.fields(pos, _, fields)
                worktable.craftguide_formspec(meta, pagenum, nil, 1, filter, tab_id)
        else
                for item in pairs(fields) do
-                       if item:match(".-:") and minetest.get_craft_recipe(item).items then
+                       if item:find(":") and minetest.get_craft_recipe(item).items then
                                worktable.craftguide_formspec(meta, pagenum, item, 1, filter, tab_id)
                        end
                end