updated for LuaLS findings
This commit is contained in:
@@ -21,6 +21,10 @@ function CapConfig.new()
|
||||
if SpearheadConfig == nil then SpearheadConfig = {} end
|
||||
if SpearheadConfig.CapConfig == nil then SpearheadConfig.CapConfig = {} end
|
||||
|
||||
if type(SpearheadConfig.CapConfig.enabled) ~= "boolean" then
|
||||
SpearheadConfig.CapConfig.enabled = true
|
||||
end
|
||||
|
||||
local enabled = SpearheadConfig.CapConfig.enabled
|
||||
if enabled == nil then enabled = true end
|
||||
self._isEnabled = enabled
|
||||
|
||||
Reference in New Issue
Block a user