Provide even more useful data in search results

This commit is contained in:
osmarks 2018-07-27 14:09:38 +01:00
parent a8c99fabb2
commit 439c357742

View File

@ -169,8 +169,8 @@ local function server(command)
local out = {}
for _, stack in pairs(matching_items) do
local i = w.get_internal_identifier(stack)
if out[i] then out[i] = out[i] + stack.count
else out[i] = stack.count end
if out[i] then out[i].count = out[i].count + stack.count
else out[i] = stack end
end
return out
end