Clear clock when switching worlds

This commit is contained in:
James Lyne 2022-06-28 15:02:13 +01:00
parent 94b7bb9849
commit ab17d12929

View File

@ -418,6 +418,9 @@ export const mutations: MutationTree<State> & 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) {