From 58604e4da1877e4ddb7659654b6ed3d0fb85bdbb Mon Sep 17 00:00:00 2001 From: Athozus Date: Wed, 7 Aug 2024 14:55:31 +0200 Subject: [PATCH] Do not call the function itself to check if it exists (2) Co-authored-by: luk3yx --- migrate.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migrate.lua b/migrate.lua index 5f08a64..5738ea4 100644 --- a/migrate.lua +++ b/migrate.lua @@ -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)