From ab17d1292934dd44529f816161480eac171a6e5a Mon Sep 17 00:00:00 2001 From: James Lyne Date: Tue, 28 Jun 2022 15:02:13 +0100 Subject: [PATCH] Clear clock when switching worlds --- src/store/mutations.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/store/mutations.ts b/src/store/mutations.ts index 0c383eb..8ab8020 100644 --- a/src/store/mutations.ts +++ b/src/store/mutations.ts @@ -418,6 +418,9 @@ export const mutations: MutationTree & Mutations = { state.markerSets.clear(); state.pendingMarkerUpdates.splice(0); state.pendingTileUpdates.splice(0); + state.currentWorldState.timeOfDay = undefined; + state.currentWorldState.raining = false; + state.currentWorldState.thundering = false; // Cancel follow when switching to a different world if(state.followTarget && state.followTarget.location.world !== newWorld!.name) {