mirror of
https://github.com/BlueMap-Minecraft/BlueMap.git
synced 2024-09-27 22:57:36 +02:00
Fix error without marker.json
This commit is contained in:
parent
e91bb8a99f
commit
f813f9d925
@ -13,7 +13,8 @@ export default class MarkerManager {
|
|||||||
|
|
||||||
this.readyPromise =
|
this.readyPromise =
|
||||||
this.loadMarkerData()
|
this.loadMarkerData()
|
||||||
.then(this.loadMarkers);
|
.catch(ignore => {})
|
||||||
|
.then(this.loadMarkers);
|
||||||
|
|
||||||
$(document).on('bluemap-map-change', this.onBlueMapMapChange);
|
$(document).on('bluemap-map-change', this.onBlueMapMapChange);
|
||||||
}
|
}
|
||||||
@ -34,9 +35,11 @@ export default class MarkerManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
loadMarkers = () => {
|
loadMarkers = () => {
|
||||||
this.markerData.markerSets.forEach(setData => {
|
if (this.markerData && this.markerData.markerSets) {
|
||||||
this.markerSets.push(new MarkerSet(this.blueMap, setData));
|
this.markerData.markerSets.forEach(setData => {
|
||||||
});
|
this.markerSets.push(new MarkerSet(this.blueMap, setData));
|
||||||
|
});
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
update(){
|
update(){
|
||||||
|
Loading…
Reference in New Issue
Block a user