diff options
Diffstat (limited to 'features')
-rw-r--r-- | features/slayers/index.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/features/slayers/index.js b/features/slayers/index.js index 9f993db..d494096 100644 --- a/features/slayers/index.js +++ b/features/slayers/index.js @@ -112,6 +112,7 @@ class Slayers extends Feature { this.pillerE = undefined this.lastPillerDink = 0 this.lastServer = undefined + this.lastSentServer = 0 this.slayerLocationDataH = {} this.entityAttackEventLoaded = false; @@ -230,8 +231,9 @@ class Slayers extends Feature { } } - if (this.lastServer !== this.FeatureManager.features["dataLoader"].class.stats.Server) { + if (this.lastServer !== this.FeatureManager.features["dataLoader"].class.stats.Server || Date.now() - this.lastSentServer > 60000 * 5) { this.lastServer = this.FeatureManager.features["dataLoader"].class.stats.Server; + this.lastSentServer = Date.now() socketConnection.setSlayerServer(this.FeatureManager.features["dataLoader"].class.stats.Server); } |