Search brackets in creative inventory

This commit is contained in:
kay27 2022-01-20 05:48:10 +04:00
parent c2b8991eb2
commit aac486ccc8
1 changed files with 1 additions and 1 deletions

View File

@ -117,7 +117,7 @@ local function filter_item(name, description, lang, filter)
else
desc = string.lower(minetest.get_translated_string(lang, description))
end
return string.find(name, filter) or string.find(desc, filter)
return string.find(name, filter, nil, true) or string.find(desc, filter, nil, true)
end
local function set_inv_search(filter, player)