aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorEmpa <42304516+ItsEmpa@users.noreply.github.com>2024-05-30 22:22:25 +0200
committerGitHub <noreply@github.com>2024-05-30 22:22:25 +0200
commit4509e8e04255a6c224bada3c15c1feca642f5339 (patch)
tree9e19ba1745c85fcc76ea969ede7b9f69a1db8872 /src/main
parent469e6187ee15d3559f91ce21be7a37d13d16f809 (diff)
downloadskyhanni-4509e8e04255a6c224bada3c15c1feca642f5339.tar.gz
skyhanni-4509e8e04255a6c224bada3c15c1feca642f5339.tar.bz2
skyhanni-4509e8e04255a6c224bada3c15c1feca642f5339.zip
Fix: Diana chat errors without option turned on (#1942)
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/event/diana/DianaFixChat.kt5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/event/diana/DianaFixChat.kt b/src/main/java/at/hannibal2/skyhanni/features/event/diana/DianaFixChat.kt
index 9ba94fe86..ebdb83bcf 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/event/diana/DianaFixChat.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/event/diana/DianaFixChat.kt
@@ -1,5 +1,6 @@
package at.hannibal2.skyhanni.features.event.diana
+import at.hannibal2.skyhanni.SkyHanniMod
import at.hannibal2.skyhanni.data.ClickType
import at.hannibal2.skyhanni.events.BurrowGuessEvent
import at.hannibal2.skyhanni.events.ItemClickEvent
@@ -15,6 +16,8 @@ import kotlin.time.Duration.Companion.seconds
class DianaFixChat {
+ private val config get() = SkyHanniMod.feature.event.diana
+
private var hasSetParticleQuality = false
private var hasSetToggleMusic = false
private var lastParticleQualityPrompt = SimpleTimeMark.farPast()
@@ -117,5 +120,5 @@ class DianaFixChat {
errorCounter = 0
}
- private fun isEnabled() = DianaAPI.isDoingDiana()
+ private fun isEnabled() = DianaAPI.isDoingDiana() && config.burrowsSoopyGuess
}