Fix config hash handling in update response
This commit is contained in:
parent
980141ccba
commit
27231ff5ff
@ -185,8 +185,8 @@ export default class DynmapMapProvider extends MapProvider {
|
|||||||
this.store.commit(MutationTypes.ADD_TILE_UPDATES, updates.tiles);
|
this.store.commit(MutationTypes.ADD_TILE_UPDATES, updates.tiles);
|
||||||
this.store.commit(MutationTypes.ADD_CHAT, updates.chat);
|
this.store.commit(MutationTypes.ADD_CHAT, updates.chat);
|
||||||
|
|
||||||
if(response.configHash) {
|
if(response.confighash) {
|
||||||
this.store.commit(MutationTypes.SET_SERVER_CONFIGURATION_HASH, response.confighash || 0);
|
this.store.commit(MutationTypes.SET_SERVER_CONFIGURATION_HASH, response.confighash);
|
||||||
}
|
}
|
||||||
|
|
||||||
await this.store.dispatch(ActionTypes.SET_PLAYERS, players);
|
await this.store.dispatch(ActionTypes.SET_PLAYERS, players);
|
||||||
|
Loading…
Reference in New Issue
Block a user