From 73061d059cef2251a13f577ea7f1c1b5da57f78a Mon Sep 17 00:00:00 2001 From: Buurazu Date: Wed, 23 Mar 2022 03:23:18 -0400 Subject: [PATCH] Stop error loading midgames before latest EID update --- main.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.lua b/main.lua index 82c24e73..cad12732 100644 --- a/main.lua +++ b/main.lua @@ -1524,8 +1524,8 @@ if EID.MCMLoaded or REPENTANCE then end EID.TouchedActiveItems = {} if isSave then - -- JSON saves integer table keys as strings. we need to transform them back... - for playerID, data in pairs(savedEIDConfig["TouchedActiveItems"]) do + -- JSON saves integer table keys as strings. we need to transform them back... + for playerID, data in pairs(savedEIDConfig["TouchedActiveItems"] or {}) do local convertedData = {} for key, value in pairs(data) do convertedData[tonumber(key) or key] = value