Use non meta string.StartsWith

This commit is contained in:
Redox 2023-08-19 21:29:21 +02:00
parent f07bb2d71c
commit ed7dc55d67
No known key found for this signature in database
GPG Key ID: C10A433A95068388

View File

@ -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