Fix migrating with no changes (#71) (#73)

This commit is contained in:
PennyJim
2024-10-31 01:36:04 -06:00
committed by GitHub
parent 6f83853cb5
commit 31ba8c7aa7

View File

@@ -92,7 +92,7 @@ end
function flib_migration.on_config_changed(e, migrations, mod_name, ...)
local changes = e.mod_changes[mod_name or script.mod_name]
local old_version = changes and changes.old_version
if old_version or not changes then
if old_version then
if migrations then
flib_migration.run(old_version, migrations, nil, ...)
end