From 1a6f9ad6694642ad8bbe194f21ab6b98a5d5de45 Mon Sep 17 00:00:00 2001 From: Acamaeda Date: Wed, 7 Oct 2020 11:03:32 -0400 Subject: [PATCH] Fixed importing --- js/utils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/utils.js b/js/utils.js index 50286f0..dd7fcfc 100644 --- a/js/utils.js +++ b/js/utils.js @@ -72,7 +72,7 @@ function startPlayerBase() { notify: {}, msDisplay: "always", offlineProd: true, - versionType: "Modding", + versionType: modInfo.id, version: VERSION.num, beta: VERSION.beta, timePlayed: 0, @@ -191,7 +191,7 @@ function importSave(imported=undefined, forced=false) { if (imported===undefined) imported = prompt("Paste your save here") try { tempPlr = Object.assign(getStartPlayer(), JSON.parse(atob(imported))) - if(tempPlr.versionType != modInfo.id && !forced) // Wrong save (use "Forced" to force it to accept.) + if(tempPlr.versionType != modInfo.id && !forced && !confirm("This save appears to be for a different mod! Are you sure you want to import?")) // Wrong save (use "Forced" to force it to accept.) return player = tempPlr; player.versionType = modInfo.id