From 25e73c80dac179815dfcb7f0985c94233280f3db Mon Sep 17 00:00:00 2001 From: thepaperpilot Date: Mon, 28 Jun 2021 18:58:58 -0500 Subject: [PATCH] Fixed saves manager not saving active save --- src/components/system/SavesManager.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/system/SavesManager.vue b/src/components/system/SavesManager.vue index e41cefd..960e82a 100644 --- a/src/components/system/SavesManager.vue +++ b/src/components/system/SavesManager.vue @@ -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();