forked from profectus/Profectus
Fixed saves manager not saving active save
This commit is contained in:
parent
e5b031ddb0
commit
25e73c80da
1 changed files with 3 additions and 0 deletions
|
@ -121,6 +121,9 @@ export default {
|
||||||
openSave(id) {
|
openSave(id) {
|
||||||
this.saves[player.id].time = player.time;
|
this.saves[player.id].time = player.time;
|
||||||
loadSave(this.saves[id]);
|
loadSave(this.saves[id]);
|
||||||
|
const modData = JSON.parse(decodeURIComponent(escape(atob(localStorage.getItem(modInfo.id)))));
|
||||||
|
modData.active = id;
|
||||||
|
localStorage.setItem(modInfo.id, btoa(unescape(encodeURIComponent(JSON.stringify(modData)))));
|
||||||
},
|
},
|
||||||
async newSave() {
|
async newSave() {
|
||||||
const playerData = await newSave();
|
const playerData = await newSave();
|
||||||
|
|
Loading…
Reference in a new issue