Added token verification to cards that seal

This commit is contained in:
Chr1Z93 2024-11-19 23:05:33 +01:00
parent 55c8926385
commit ffab6d5c43

View File

@ -114,7 +114,14 @@ function updateSave()
end
function onLoad(savedData)
sealedTokens = JSON.decode(savedData) or {}
-- verify sealed tokens
for _, guid in ipairs(JSON.decode(savedData) or {}) do
local token = getObjectFromGUID(guid)
if token ~= nil then
table.insert(sealedTokens, guid)
end
end
ID_URL_MAP = chaosBagApi.getIdUrlMap()
generateContextMenu()
updateStackSize()