Fix crash
This commit is contained in:
parent
7e0feefc89
commit
e88921fe72
|
@ -242,7 +242,7 @@ local function resolve_aliases(hash)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if newname ~= "" and i3.recipes_cache[oldname] and not hash[newname] then
|
if newname ~= "" and i3.recipes_cache[oldname] and reg_items[newname] and not hash[newname] then
|
||||||
insert(i3.init_items, newname)
|
insert(i3.init_items, newname)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -101,7 +101,7 @@ local function search(data)
|
||||||
for i = 1, #data.items_raw do
|
for i = 1, #data.items_raw do
|
||||||
local item = data.items_raw[i]
|
local item = data.items_raw[i]
|
||||||
local def = reg_items[item]
|
local def = reg_items[item]
|
||||||
local desc = lower(translate(data.lang_code, def and def.description)) or ""
|
local desc = lower(translate(data.lang_code, def.description)) or ""
|
||||||
local search_in = fmt("%s %s", item, desc)
|
local search_in = fmt("%s %s", item, desc)
|
||||||
local temp, j, to_add = {}, 1
|
local temp, j, to_add = {}, 1
|
||||||
|
|
||||||
|
|
Ŝarĝante…
Reference in New Issue