mirror of
https://github.com/bryanthaboi/gen1recomp.git
synced 2026-08-17 19:24:01 +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
|
-- the same mod set the game loads, merged into Data before the catalogs
|
||||||
-- build, so modded species/items/moves are editable and MonOps stops
|
-- build, so modded species/items/moves are editable and MonOps stops
|
||||||
-- asserting on them
|
-- 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
|
-- One loader per editor session. A previous session leaves Data holding
|
||||||
-- that session's merged registries (and possibly the other game's cache),
|
-- that session's merged registries (and possibly the other game's cache),
|
||||||
-- and a second builtin registration over them collides -- "statuses
|
-- and a second builtin registration over them collides -- "statuses
|
||||||
|
|||||||
Reference in New Issue
Block a user