Craft guide : prevent crash when filter is not alphanumerical - thanks @kaeza
This commit is contained in:
parent
51922dfe74
commit
5b93a9bf84
@ -180,7 +180,7 @@ function worktable.craftguide_update(pos, filter)
|
|||||||
if not (def.groups.not_in_creative_inventory == 1) and
|
if not (def.groups.not_in_creative_inventory == 1) and
|
||||||
minetest.get_craft_recipe(name).items and
|
minetest.get_craft_recipe(name).items and
|
||||||
def.description and def.description ~= "" then
|
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
|
inv_items_list[#inv_items_list+1] = name
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user