From 5b93a9bf8432cbd30c43a6e1d12c6b5b7da9c4f8 Mon Sep 17 00:00:00 2001 From: jp Date: Mon, 7 Dec 2015 14:18:05 +0100 Subject: [PATCH] Craft guide : prevent crash when filter is not alphanumerical - thanks @kaeza --- worktable.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worktable.lua b/worktable.lua index 6f5b448..6b249d1 100644 --- a/worktable.lua +++ b/worktable.lua @@ -180,7 +180,7 @@ function worktable.craftguide_update(pos, filter) if not (def.groups.not_in_creative_inventory == 1) and minetest.get_craft_recipe(name).items and def.description and def.description ~= "" then - if (filter and def.name:find(filter)) or not filter then + if (filter and def.name:find(filter, 1, true)) or not filter then inv_items_list[#inv_items_list+1] = name end end