diff --git a/src/store/getters.ts b/src/store/getters.ts index 34c7f3b..faf80ef 100644 --- a/src/store/getters.ts +++ b/src/store/getters.ts @@ -7,7 +7,7 @@ export type Getters = { coordinatesControlEnabled(state: State): boolean; clockControlEnabled(state: State): boolean; night(state: State): boolean; - mapBackground(state: State): string; + mapBackground(state: State, getters: GetterTree & Getters): string; } export const getters: GetterTree & Getters = { @@ -33,7 +33,7 @@ export const getters: GetterTree & Getters = { } if(state.currentMap.nightAndDay) { - if(this.night(state)) { + if(Util.getMinecraftTime(state.currentWorldState.timeOfDay).night) { return state.currentMap.backgroundNight || state.currentMap.background || 'transparent'; }