Provide even more useful data in search results
This commit is contained in:
parent
a8c99fabb2
commit
439c357742
@ -169,8 +169,8 @@ local function server(command)
|
|||||||
local out = {}
|
local out = {}
|
||||||
for _, stack in pairs(matching_items) do
|
for _, stack in pairs(matching_items) do
|
||||||
local i = w.get_internal_identifier(stack)
|
local i = w.get_internal_identifier(stack)
|
||||||
if out[i] then out[i] = out[i] + stack.count
|
if out[i] then out[i].count = out[i].count + stack.count
|
||||||
else out[i] = stack.count end
|
else out[i] = stack end
|
||||||
end
|
end
|
||||||
return out
|
return out
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user