aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjakeQT <96396730+jakeQT@users.noreply.github.com>2022-06-01 12:40:47 +0800
committerGitHub <noreply@github.com>2022-06-01 12:40:47 +0800
commit890299501216e3cd8a7c24ffd5439de6d3d28d34 (patch)
treed8011459b60bb156b30517972c48714cd666f2f2
parentf565ee8ccf8c3c3e9998ac1718b115f93af7c3fb (diff)
downloadSoopyV2-890299501216e3cd8a7c24ffd5439de6d3d28d34.tar.gz
SoopyV2-890299501216e3cd8a7c24ffd5439de6d3d28d34.tar.bz2
SoopyV2-890299501216e3cd8a7c24ffd5439de6d3d28d34.zip
fix bear spawning timer showing outside dungeon
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 34c236f..2ec0267 100644
--- a/features/dungeonSolvers/index.js
+++ b/features/dungeonSolvers/index.js
@@ -581,7 +581,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("");