milo: lock chest with multiple items

This commit is contained in:
kepler155c
2018-11-13 16:07:28 -05:00
parent 2af29c5d93
commit 6870378422
3 changed files with 62 additions and 23 deletions

View File

@@ -52,6 +52,7 @@ function itemDB:splitKey(key, item)
end
function itemDB:get(key)
if not key then error('itemDB:get: key is required', 2) end
if type(key) == 'string' then
key = self:splitKey(key)
end