mirror of
https://github.com/Acamaeda/The-Modding-Tree.git
synced 2025-04-25 10:41:14 +00:00
Fixed importing
This commit is contained in:
parent
a5ffc31aaf
commit
1a6f9ad669
1 changed files with 2 additions and 2 deletions
|
@ -72,7 +72,7 @@ function startPlayerBase() {
|
||||||
notify: {},
|
notify: {},
|
||||||
msDisplay: "always",
|
msDisplay: "always",
|
||||||
offlineProd: true,
|
offlineProd: true,
|
||||||
versionType: "Modding",
|
versionType: modInfo.id,
|
||||||
version: VERSION.num,
|
version: VERSION.num,
|
||||||
beta: VERSION.beta,
|
beta: VERSION.beta,
|
||||||
timePlayed: 0,
|
timePlayed: 0,
|
||||||
|
@ -191,7 +191,7 @@ function importSave(imported=undefined, forced=false) {
|
||||||
if (imported===undefined) imported = prompt("Paste your save here")
|
if (imported===undefined) imported = prompt("Paste your save here")
|
||||||
try {
|
try {
|
||||||
tempPlr = Object.assign(getStartPlayer(), JSON.parse(atob(imported)))
|
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
|
return
|
||||||
player = tempPlr;
|
player = tempPlr;
|
||||||
player.versionType = modInfo.id
|
player.versionType = modInfo.id
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue