mirror of
https://github.com/CapsAdmin/pac3.git
synced 2025-03-04 03:03:01 -05:00
Use non meta string.StartsWith
This commit is contained in:
parent
f07bb2d71c
commit
ed7dc55d67
@ -239,9 +239,7 @@ function PART:SetPath(path)
|
||||
path = info.sound
|
||||
end
|
||||
|
||||
if
|
||||
not path:StartWith("http")
|
||||
or not pac.resource.Download(path, function(path) load("data/" .. path) end)
|
||||
if not string.StartsWith(path, "http") or not pac.resource.Download(path, function(path) load("data/" .. path) end)
|
||||
|
||||
then load("sound/" .. path)
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user