forked from MineClone5/MineClone5
Search brackets in creative inventory
This commit is contained in:
parent
c2b8991eb2
commit
aac486ccc8
|
@ -117,7 +117,7 @@ local function filter_item(name, description, lang, filter)
|
||||||
else
|
else
|
||||||
desc = string.lower(minetest.get_translated_string(lang, description))
|
desc = string.lower(minetest.get_translated_string(lang, description))
|
||||||
end
|
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
|
end
|
||||||
|
|
||||||
local function set_inv_search(filter, player)
|
local function set_inv_search(filter, player)
|
||||||
|
|
Loading…
Reference in New Issue