Skip to content

Commit

Permalink
Fixed bug in the offset option. Was typoed as offset].
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisjenkins75 committed Jun 14, 2022
1 parent 8c53902 commit d2f128b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions craftdb.lua
Original file line number Diff line number Diff line change
Expand Up @@ -381,10 +381,7 @@ function CraftDB:search_items(name_pattern, options)
end

-- Step #3.
-- Look up any additional registration data for each item. Ex: user
-- might want the 'inventory_image', so that they can display it in a
-- digistuff:touchscreen for a nice craft-grid-like display (eg, via
-- 'addimage').
-- Look up any additional registration data for each item.
local result = {}
for _, name in ipairs(matching_names) do
result[name] = {}
Expand Down
2 changes: 1 addition & 1 deletion init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ local function _on_digiline_search_items(pos, channel, msg)
-- internal API, we pack all of our "options" into a table.
local options = {
-- TODO: Sanitize/deep-copy these values? Is that needed?
offset = msg['offset]'],
offset = msg['offset'],
max_count = msg['max_count'],
substring_match = msg['substring_match'],
group_filter = msg['group_filter'],
Expand Down

0 comments on commit d2f128b

Please sign in to comment.