Fix config hash handling in update response

This commit is contained in:
James Lyne 2021-12-23 21:53:38 +00:00
parent 980141ccba
commit 27231ff5ff

View File

@ -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);