diff --git a/init.lua b/init.lua index 9e6d07a..f3429cc 100644 --- a/init.lua +++ b/init.lua @@ -185,7 +185,7 @@ local cache = setmetatable({ game = GetGameName(), resource = resourceName }, { __call = function(self, key, func, timeout) local value = rawget(self, key) - if not value then + if value == nil then value = func() rawset(self, key, value)