fix(save-editor): reload Data and mods if App.dataVersion differs from active session

This commit is contained in:
1jamie
2026-08-15 11:25:33 -05:00
parent f06c4d4584
commit b29b6fd7bd
+1 -1
View File
@@ -146,7 +146,7 @@ function App.load(pathOverride, opts)
-- the same mod set the game loads, merged into Data before the catalogs
-- build, so modded species/items/moves are editable and MonOps stops
-- asserting on them
if not mods then
if not mods or App.dataVersion ~= opts.version then
-- One loader per editor session. A previous session leaves Data holding
-- that session's merged registries (and possibly the other game's cache),
-- and a second builtin registration over them collides -- "statuses