aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-06-01 19:17:14 +0800
committerGitHub <noreply@github.com>2022-06-01 19:17:14 +0800
commit5b7a19af30013f62692b3c132ffc939415cd9e9b (patch)
tree7908d14008cc207bc4c5ae831133f42d7f626683
parentdc7032bbb937cbff276d18fba263ef1625834c6b (diff)
parent890299501216e3cd8a7c24ffd5439de6d3d28d34 (diff)
downloadSoopyV2-5b7a19af30013f62692b3c132ffc939415cd9e9b.tar.gz
SoopyV2-5b7a19af30013f62692b3c132ffc939415cd9e9b.tar.bz2
SoopyV2-5b7a19af30013f62692b3c132ffc939415cd9e9b.zip
Merge pull request #8 from jakeQT/patch-5
fix bear spawning timer showing outside dungeon
-rw-r--r--features/dungeonSolvers/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/features/dungeonSolvers/index.js b/features/dungeonSolvers/index.js
index 8b0e998..14f8b88 100644
--- a/features/dungeonSolvers/index.js
+++ b/features/dungeonSolvers/index.js
@@ -584,7 +584,7 @@ class DungeonSolvers extends Feature {
}
step2() {
- if (this.bearSpawning && this.bearSpawning > 0) {
+ if (this.bearSpawning && this.bearSpawning > 0 && this.isInDungeon()) {
this.spiritBearSpawnElement.setText("&dBear spawned in: &c" + (Math.max(0, this.bearSpawning - Date.now()) / 1000).toFixed(2) + "s");
} else {
this.spiritBearSpawnElement.setText("");