from retail

This commit is contained in:
NoM0Re
2025-01-17 18:59:10 +01:00
parent 89a247addb
commit efdbb3c46d
10 changed files with 107 additions and 28 deletions
+7 -6
View File
@@ -1256,15 +1256,16 @@ function Private.Modernize(data)
end
end
local function migrateToTable(tab, field)
local value = tab[field]
if value ~= nil and type(value) ~= "table" then
tab[field] = { value }
end
end
if data.internalVersion < 67 or data.internalVersion > WeakAuras.InternalVersion() then
local castMigrationNeeded = data.internalVersion < 67
data.internalVersion = WeakAuras.InternalVersion()
local function migrateToTable(tab, field)
local value = tab[field]
if value ~= nil and type(value) ~= "table" then
tab[field] = { value }
end
end
do
local trigger_migration = {