Fix crash

This commit is contained in:
Jean-Patrick Guerrero
2022-04-25 16:00:49 +02:00
parent 7e0feefc89
commit e88921fe72
2 changed files with 2 additions and 2 deletions

View File

@ -242,7 +242,7 @@ local function resolve_aliases(hash)
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)
end
end