diff options
Diffstat (limited to 'features/events/index.js')
| -rw-r--r-- | features/events/index.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/features/events/index.js b/features/events/index.js index 99b5d2c..bbe1b6d 100644 --- a/features/events/index.js +++ b/features/events/index.js @@ -23,6 +23,7 @@ class Events extends Feature { } this.lastRequestTime = 0 this.nextUpdateApprox = -1 + this.lastWorldChange = 0 this.lastRequest = 0 this.potentialParticleLocs = {} this.showingWaypoints = false @@ -138,7 +139,7 @@ class Events extends Feature { } }) - let showingWaypointsNew = hasDianaShovle && this.FeatureManager.features["dataLoader"].class.area === "Hub" && this.burrialWaypointsEnabled.getValue() + let showingWaypointsNew = (this.lastWorldChange+5000<Date.now()?hasDianaShovle && this.FeatureManager.features["dataLoader"].class.area === "Hub" && this.burrialWaypointsEnabled.getValue():this.showingWaypoints) if(!this.showingWaypoints && showingWaypointsNew){ this.loadApi() @@ -175,9 +176,9 @@ class Events extends Feature { this.burrialData.locations = [] this.burrialData.historicalLocations = [] - this.showingWaypoints = false - this.nextUpdateApprox = Date.now() + + this.lastWorldChange = Date.now() } loadApi(){ |
