mirror of
https://github.com/CapsAdmin/pac3.git
synced 2025-03-04 03:03:01 -05:00
fix cached downloads not being used
This commit is contained in:
parent
4a8309b233
commit
39c35868d8
@ -317,8 +317,8 @@ end
|
||||
function resource.BuildCacheFolderList(file_name)
|
||||
if not resource.url_cache_lookup then
|
||||
local tbl = {}
|
||||
for _, file_name in ipairs((file.Find(DOWNLOAD_FOLDER, "DATA"))) do
|
||||
local name = file_name:match("(%d)%.")
|
||||
for _, file_name in ipairs((file.Find(DOWNLOAD_FOLDER .. "*", "DATA"))) do
|
||||
local name = file_name:match("(%w+)%.")
|
||||
if name then
|
||||
tbl[name] = file_name
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user