cache fixed

This commit is contained in:
gononono64 committed 2025-05-15 01:48:02 -05:00
1 parent 6b660d8084
commit d89b087e4d
2 files changed
+6 -7

No files matched your search

-1
View File
@@ -57,7 +57,6 @@ end
function Cache.Create(name, compare, waitTime)
assert(name, "Cache name is required.")
assert(compare, "Comparison function is required.")
assert(type(compare) == "function", "Comparison function must be a function.")
local _name = tostring(name) -- Ensure name is a string
local cache = Cache.Caches[_name]
if cache and cache.Compare == compare then