Fix crash when no results are found

master
D4VID 10 months ago
parent 510a832582
commit dafecf0741

@ -320,7 +320,7 @@ local function craft_item(search)
local selected
if #matches == 0 then
print(selected .. ' not found')
print(search .. ' not found')
return false
elseif #matches == 1 then
selected = matches[1]

Loading…
Cancel
Save