mirror of
https://github.com/etlegacy/wolfadmin.git
synced 2024-11-22 04:12:19 +00:00
Ignore settings for unknown modules
This commit is contained in:
parent
4d5e69d785
commit
9c799b8f4d
1 changed files with 1 additions and 1 deletions
|
@ -151,7 +151,7 @@ function settings.load()
|
||||||
local fileTable = toml.parse(fileString)
|
local fileTable = toml.parse(fileString)
|
||||||
for module, settings in pairs(fileTable) do
|
for module, settings in pairs(fileTable) do
|
||||||
for setting, value in pairs(settings) do
|
for setting, value in pairs(settings) do
|
||||||
if cfgStructure[module][setting] then
|
if cfgStructure[module] and cfgStructure[module][setting] then
|
||||||
data[cfgStructure[module][setting]] = value
|
data[cfgStructure[module][setting]] = value
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue