mirror of
https://github.com/Acamaeda/The-Modding-Tree.git
synced 2025-04-24 10:11:05 +00:00
Added fixOldSave and work on reset logic for side layers
This commit is contained in:
parent
a50326a430
commit
03cd7f11da
6 changed files with 26 additions and 8 deletions
js
|
@ -301,6 +301,7 @@ function importSave(imported=undefined, forced=false) {
|
|||
player = tempPlr;
|
||||
player.versionType = modInfo.id
|
||||
fixSave()
|
||||
versionCheck()
|
||||
save()
|
||||
window.location.reload()
|
||||
} catch(e) {
|
||||
|
@ -317,7 +318,10 @@ function versionCheck() {
|
|||
}
|
||||
|
||||
if (setVersion) {
|
||||
if (player.versionType == modInfo.id && VERSION.num > player.version) player.keepGoing = false
|
||||
if (player.versionType == modInfo.id && VERSION.num > player.version) {
|
||||
player.keepGoing = false
|
||||
if (fixOldSave) fixOldSave(player.version)
|
||||
}
|
||||
player.versionType = getStartPlayer().versionType
|
||||
player.version = VERSION.num
|
||||
player.beta = VERSION.beta
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue