Fixed saves manager not saving active save

This commit is contained in:
thepaperpilot 2021-06-28 18:58:58 -05:00
parent e5b031ddb0
commit 25e73c80da

View file

@ -121,6 +121,9 @@ export default {
openSave(id) {
this.saves[player.id].time = player.time;
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() {
const playerData = await newSave();