Fix settings loading

This commit is contained in:
2024-12-12 16:20:09 +01:00
parent 34a8024ce4
commit 68c49088f4

View File

@@ -74,7 +74,7 @@ local function init()
local traverse = table
for i = 1, #keys do
local key = keys[i]
if traverse[key] then
if traverse[key] ~= nil then
traverse = traverse[key]
else
break
@@ -140,11 +140,6 @@ local function init()
"Stableta"
}),
}
--/run Heimdall_Data = {config = {who = {enabled = false}}}
--/dump Heimdall_Data
print("138 " .. tostring(Heimdall_Data.config.who.enabled))
print("139 " .. tostring(data.GetOrDefault(Heimdall_Data, { "config", "who", "enabled" }, true)))
print("140 " .. tostring(data.config.who.enabled))
data.raceMap = {
["Orc"] = "Horde",