Skip to content

Commit

Permalink
add new material files when looking for missing ones
Browse files Browse the repository at this point in the history
  • Loading branch information
Yagira committed Sep 10, 2023
1 parent 9bb07ff commit 73e4a6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/pac3/core/shared/util.lua
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ function pac.DownloadMDL(url, callback, onfail, ply)
if not found then
for i, v in pairs(files) do
if string.find(v.file_path, material_name, 1, true) or string.find(material_name, v.file_name, 1, true) then
v.file_name = material_name
table.insert(files, {file_name = material_name, buffer = v.buffer, crc = v.crc, file_path = v.file_path})
found = v.file_path
break
end
Expand Down

0 comments on commit 73e4a6f

Please sign in to comment.