mirror of
https://github.com/CFC-Servers/cfc_cl_http_whitelist.git
synced 2025-03-04 03:03:18 -05:00
update file.Exists checks
This commit is contained in:
parent
89c471034e
commit
472dd31648
@ -1,4 +1,4 @@
|
||||
if not file.Exists("entities/mediaplayer_tv", "LUA") then return end
|
||||
if not file.Exists( "entities/mediaplayer_tv/shared.lua", "LUA" ) then return end
|
||||
|
||||
AddCSLuaFile()
|
||||
|
||||
|
@ -1,4 +1,5 @@
|
||||
if not file.Exists("entities/starfall_processor", "LUA") then return end
|
||||
---@diagnostic disable-next-line: undefined-global
|
||||
if not file.Exists( "entities/starfall_processor/cl_init.lua", "LUA" ) then return end
|
||||
|
||||
AddCSLuaFile()
|
||||
|
||||
|
@ -35,7 +35,7 @@ function CFCHTTP.LuaFileSource( filename )
|
||||
end
|
||||
|
||||
---@param dir string
|
||||
---@return fun(): WhitelistConfig[]
|
||||
---@return (fun(): WhitelistConfig)[]
|
||||
function CFCHTTP.LuaDirectorySources( dir )
|
||||
---@type (fun(): WhitelistConfig)[]
|
||||
local funcs = {}
|
||||
|
Loading…
Reference in New Issue
Block a user