Skip removed mats

This commit is contained in:
Chr1Z93 2024-11-02 00:16:52 +01:00
parent 0958f6fa7e
commit 0e6f0df84f

View File

@ -201,7 +201,8 @@ function loadDecksCoroutine()
if not allCardsBagApi.isIndexReady() then return end
matsWithInvestigator = playermatApi.getUsedMatColors()
for _, matColor in ipairs({ "White", "Orange", "Green", "Red" }) do
local matObjects = guidReferenceApi.getObjectsByType("Playermat")
for matColor, _ in pairs(matObjects) do
local deckId = _G[string.lower(matColor) .. "DeckId"]
if deckId ~= nil and deckId ~= "" then
buildDeck(matColor, deckId)