Various fixes to our upgrade logic (#536)

Stuff broke over time, especially with the major changes we made leading
up to 2.3. We should test with older saves if/when we make large changes
in the future.

Fixes #532
This commit is contained in:
David Walker
2023-05-26 21:16:31 -07:00
committed by GitHub
parent ab207ce36c
commit db26d054fc
6 changed files with 58 additions and 54 deletions
+1 -1
View File
@@ -229,7 +229,7 @@ export const v2APIBreak = () => {
}
// API break function is called before the version31 2.3.0 changes, scripts are still an array.
for (const script of home.scripts as unknown as Script[]) {
for (const script of home.scripts.values() as unknown as Script[]) {
processScript(rules, script);
}