Stop error loading midgames before latest EID update

This commit is contained in:
Buurazu authored and GitHub committed 2022-03-23 03:23:18 -04:00
1 parent f5dce45bfc
commit 73061d059c
1 file changed
+2 -2
+2 -2
View File
@@ -1524,8 +1524,8 @@ if EID.MCMLoaded or REPENTANCE then
end end
EID.TouchedActiveItems = {} EID.TouchedActiveItems = {}
if isSave then if isSave then
-- JSON saves integer table keys as strings. we need to transform them back... -- JSON saves integer table keys as strings. we need to transform them back...
for playerID, data in pairs(savedEIDConfig["TouchedActiveItems"]) do for playerID, data in pairs(savedEIDConfig["TouchedActiveItems"] or {}) do
local convertedData = {} local convertedData = {}
for key, value in pairs(data) do for key, value in pairs(data) do
convertedData[tonumber(key) or key] = value convertedData[tonumber(key) or key] = value