mirror of
https://github.com/bryanthaboi/gen1recomp.git
synced 2026-08-16 08:11:35 +02:00
fix(save-editor): reload Data and mods if App.dataVersion differs from active session
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user