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
@ -175,7 +175,7 @@ end
|
|||||||
local function repair_storage()
|
local function repair_storage()
|
||||||
-- iterate through players
|
-- iterate through players
|
||||||
-- get_keys() was introduced in 5.7
|
-- 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
|
for _, k in ipairs(mail.storage:get_keys()) do
|
||||||
if string.sub(k,1,5) == "mail/" then
|
if string.sub(k,1,5) == "mail/" then
|
||||||
local p = string.sub(k, 6)
|
local p = string.sub(k, 6)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user