Only search in translated item description

This commit is contained in:
Jean-Patrick Guerrero 2020-07-15 15:06:02 +02:00
parent bfa7f4d631
commit c008f5097d

View File

@ -1386,10 +1386,9 @@ local function search(data)
for i = 1, #data.items_raw do
local item = data.items_raw[i]
local def = reg_items[item]
local desc = (def and def.description) and lower(def.description) or ""
local loc_desc = lower(translate(data.lang_code, def and def.description)) or ""
local search_in = fmt("%s %s %s", item, desc, loc_desc)
local def = reg_items[item]
local desc = lower(translate(data.lang_code, def and def.description)) or ""
local search_in = fmt("%s %s", item, desc)
local to_add
if search_filter then