From 890299501216e3cd8a7c24ffd5439de6d3d28d34 Mon Sep 17 00:00:00 2001 From: jakeQT <96396730+jakeQT@users.noreply.github.com> Date: Wed, 1 Jun 2022 12:40:47 +0800 Subject: fix bear spawning timer showing outside dungeon fix bear spawning timer showing outside dungeon --- features/dungeonSolvers/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(""); -- cgit