From 27231ff5ff6e8b460d713f71dbc4fcae0a5ddc5e Mon Sep 17 00:00:00 2001 From: James Lyne Date: Thu, 23 Dec 2021 21:53:38 +0000 Subject: [PATCH] Fix config hash handling in update response --- src/providers/DynmapMapProvider.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/providers/DynmapMapProvider.ts b/src/providers/DynmapMapProvider.ts index d14d85b..1d634b3 100644 --- a/src/providers/DynmapMapProvider.ts +++ b/src/providers/DynmapMapProvider.ts @@ -185,8 +185,8 @@ export default class DynmapMapProvider extends MapProvider { this.store.commit(MutationTypes.ADD_TILE_UPDATES, updates.tiles); this.store.commit(MutationTypes.ADD_CHAT, updates.chat); - if(response.configHash) { - this.store.commit(MutationTypes.SET_SERVER_CONFIGURATION_HASH, response.confighash || 0); + if(response.confighash) { + this.store.commit(MutationTypes.SET_SERVER_CONFIGURATION_HASH, response.confighash); } await this.store.dispatch(ActionTypes.SET_PLAYERS, players);