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