mirror of
https://github.com/wiremod/wire.git
synced 2025-03-04 03:03:04 -05:00
add additional sound flags (#3155)
This commit is contained in:
parent
1335bfade2
commit
79479ddca9
@ -1545,7 +1545,7 @@ function WireLib.SoundExists(path, ply)
|
||||
|
||||
-- Extract sound flags. Only allowed flags are '<', '>', '^', ')'
|
||||
local flags, checkpath = string.match(path, "^([^%w_/%.]*)(.*)")
|
||||
if #flags>2 or string.match(flags, "[^<>%^%)]") then
|
||||
if #flags>2 or string.match(flags, "[#@^<>%^%)}]") then
|
||||
path = checkpath
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user