aboutsummaryrefslogtreecommitdiff
path: root/features/slayers/index.js
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-08-13 19:14:55 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-08-13 19:14:55 +0800
commit2dfbf0cb12dcaebf8dd52b9066fcc70ef6d14f49 (patch)
treeb2a9fc498e4f985d9d81c1ac4f20c1de233c91db /features/slayers/index.js
parent30706c85548fda9d9749ca3c5ff6a09f72ffe87f (diff)
downloadSoopyV2-2dfbf0cb12dcaebf8dd52b9066fcc70ef6d14f49.tar.gz
SoopyV2-2dfbf0cb12dcaebf8dd52b9066fcc70ef6d14f49.tar.bz2
SoopyV2-2dfbf0cb12dcaebf8dd52b9066fcc70ef6d14f49.zip
small fixes
Diffstat (limited to 'features/slayers/index.js')
-rw-r--r--features/slayers/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/features/slayers/index.js b/features/slayers/index.js
index e7da81b..fb3cc33 100644
--- a/features/slayers/index.js
+++ b/features/slayers/index.js
@@ -790,7 +790,7 @@ class Slayers extends Feature {
let runsperHour = (60000 * 60) / averageLength;
let expPerHour = averageExp * runsperHour;
- if (Date.now() - this.lastSlayerFinishes[this.lastSlayerFinishes.length - 1] < 60000 * 5 || (this.FeatureManager.features["dataLoader"]?.class?.slayerXpToSpawn && this.FeatureManager.features["dataLoader"].class.slayerXpToSpawn[0] !== 0)) {
+ if (this.FeatureManager.features["dataLoader"] && Date.now() - this.lastSlayerFinishes[this.lastSlayerFinishes.length - 1] < 60000 * 5 || (this.FeatureManager.features["dataLoader"].class?.slayerXpToSpawn && this.FeatureManager.features["dataLoader"].class.slayerXpToSpawn[0] !== 0)) {
if (this.lastSlayerFinishes.length > 1) {
this.slayerSpeedRatesElement.setText("&6Slayer speed&7> &f" + Math.floor(averageLength / 60000) + ":" + ((Math.floor(averageLength / 1000) % 60 < 10 ? "0" : "") + (Math.floor(averageLength / 1000) % 60)) + "\n&6Exp/hour&7> &f" + numberWithCommas(Math.round(expPerHour)) + "\n&6Kills/hour&7> &f" + Math.floor(runsperHour));
} else {