Fixed bug where recently touched items list was not stored correctly
This commit is contained in:
1 parent
056ea7c756
commit
8517523d16
1 file changed
+9
@@ -1715,6 +1715,14 @@ function EID:OnGameStart(isSave)
|
|||||||
end
|
end
|
||||||
EID.PlayerItemInteractions[tonumber(playerID)] = convertedData
|
EID.PlayerItemInteractions[tonumber(playerID)] = convertedData
|
||||||
end
|
end
|
||||||
|
|
||||||
|
for playerID, data in pairs(savedEIDConfig["RecentlyTouchedItems"] or {}) do
|
||||||
|
local convertedData = {}
|
||||||
|
for key, value in pairs(data) do
|
||||||
|
convertedData[tonumber(key) or key] = value
|
||||||
|
end
|
||||||
|
EID.RecentlyTouchedItems[tonumber(playerID)] = convertedData
|
||||||
|
end
|
||||||
else
|
else
|
||||||
-- check for the players' starting active items
|
-- check for the players' starting active items
|
||||||
CheckAllActiveItemProgress()
|
CheckAllActiveItemProgress()
|
||||||
@@ -1806,6 +1814,7 @@ function EID:OnGameExit()
|
|||||||
end
|
end
|
||||||
EID.Config["CollectedItems"] = EID.CollectedItems
|
EID.Config["CollectedItems"] = EID.CollectedItems
|
||||||
EID.Config["PlayerItemInteractions"] = EID.PlayerItemInteractions or {}
|
EID.Config["PlayerItemInteractions"] = EID.PlayerItemInteractions or {}
|
||||||
|
EID.Config["RecentlyTouchedItems"] = EID.RecentlyTouchedItems or {}
|
||||||
EID.Config["UsedPillColors"] = EID.UsedPillColors
|
EID.Config["UsedPillColors"] = EID.UsedPillColors
|
||||||
|
|
||||||
EID.SaveData(EID, json.encode(EID.Config))
|
EID.SaveData(EID, json.encode(EID.Config))
|
||||||
|
|||||||
Reference in new issue
Block a user