From b70eae48cb542004d6acca6667ea6635f4ca500c Mon Sep 17 00:00:00 2001 From: James Lyne Date: Fri, 11 Dec 2020 15:29:20 +0000 Subject: [PATCH] Fix background error for night/day maps --- src/store/getters.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'; }