File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
BlueMapCore/src/main/webroot/js/libs/hud Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,8 @@ export default class MarkerManager {
1313
1414 this . readyPromise =
1515 this . loadMarkerData ( )
16- . then ( this . loadMarkers ) ;
16+ . catch ( ignore => { } )
17+ . then ( this . loadMarkers ) ;
1718
1819 $ ( document ) . on ( 'bluemap-map-change' , this . onBlueMapMapChange ) ;
1920 }
@@ -34,9 +35,11 @@ export default class MarkerManager {
3435 }
3536
3637 loadMarkers = ( ) => {
37- this . markerData . markerSets . forEach ( setData => {
38- this . markerSets . push ( new MarkerSet ( this . blueMap , setData ) ) ;
39- } ) ;
38+ if ( this . markerData && this . markerData . markerSets ) {
39+ this . markerData . markerSets . forEach ( setData => {
40+ this . markerSets . push ( new MarkerSet ( this . blueMap , setData ) ) ;
41+ } ) ;
42+ }
4043 } ;
4144
4245 update ( ) {
Original file line number Diff line number Diff line change 11org.gradle.jvmargs =-Xmx3G
22org.gradle.daemon =false
33
4- coreVersion =0.6.0
4+ coreVersion =0.6.1
55
66targetVersion =mc1.12
You can’t perform that action at this time.
0 commit comments