From fe3449248bb556779fc1ef8ee216efeda43e8592 Mon Sep 17 00:00:00 2001 From: Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> Date: Sun, 23 Jan 2022 22:21:23 +0800 Subject: add error handling to registering forge event, and other fixes and cleanups --- features/events/index.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'features/events') 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