mirror of
https://github.com/mt-mods/mail.git
synced 2025-04-30 08:21:44 -04:00
Do not call the function itself to check if it exists (2)
Co-authored-by: luk3yx <luk3yx@users.noreply.github.com>
This commit is contained in:
parent
8753c92cab
commit
58604e4da1
1 changed files with 1 additions and 1 deletions
|
@ -175,7 +175,7 @@ end
|
|||
local function repair_storage()
|
||||
-- iterate through players
|
||||
-- get_keys() was introduced in 5.7
|
||||
if mail.storage:get_keys() then
|
||||
if mail.storage.get_keys then
|
||||
for _, k in ipairs(mail.storage:get_keys()) do
|
||||
if string.sub(k,1,5) == "mail/" then
|
||||
local p = string.sub(k, 6)
|
||||
|
|
Loading…
Add table
Reference in a new issue