This commit is contained in:
Daniël van Noord
2021-02-25 22:17:21 +01:00
parent 31088ca686
commit db22e07d8e
3 changed files with 24 additions and 7 deletions

View File

@@ -43,6 +43,7 @@ CM.save = function () {
*/
CM.load = function (str) {
const save = JSON.parse(str);
CM.Sim.InitData();
CM.Config.LoadConfig(save.settings);
if (save.version !== `${CM.VersionMajor}.${CM.VersionMinor}`) {
if (Game.prefs.popups) Game.Popup('A new version of Cookie Monster has been loaded, check out the release notes in the info tab!');