aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-11-13 19:00:31 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-11-13 19:00:31 +0100
commit72015368502f5e1bb35b6cc4e70fbf62981b92a0 (patch)
tree9ad3d1a4ee05213e3ebfd44b195ad427161ce758 /src/main/java
parent7218a8f900c29521b152a0e616d7b75cc509840b (diff)
downloadskyhanni-72015368502f5e1bb35b6cc4e70fbf62981b92a0.tar.gz
skyhanni-72015368502f5e1bb35b6cc4e70fbf62981b92a0.tar.bz2
skyhanni-72015368502f5e1bb35b6cc4e70fbf62981b92a0.zip
Fixed showing "slayer boss spawn soon" message outside correct slayer area.
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/slayer/SlayerBossSpawnSoon.kt1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/slayer/SlayerBossSpawnSoon.kt b/src/main/java/at/hannibal2/skyhanni/features/slayer/SlayerBossSpawnSoon.kt
index e7b7fe0e5..2bfdf640f 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/slayer/SlayerBossSpawnSoon.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/slayer/SlayerBossSpawnSoon.kt
@@ -21,6 +21,7 @@ class SlayerBossSpawnSoon {
@SubscribeEvent
fun onSlayerProgressChange(event: SlayerProgressChangeEvent) {
if (!isEnabled()) return
+ if (!SlayerAPI.isInCorrectArea) return
val completion = pattern.matchMatcher(event.newProgress.removeColor()) {
group("progress").formatNumber().toFloat() / group("total").formatNumber().toFloat()