Add search
This commit is contained in:
parent
e8befaba6f
commit
55f992374c
@ -163,6 +163,8 @@ local function server(command)
|
||||
os.queueEvent("reindex", inventory_with_space)
|
||||
|
||||
return { moved = moved }
|
||||
elseif command.type == "search" then
|
||||
return d.map(search(command.query, command.threshold), function(x) return x.item end)
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user