diff options
author | Empa <42304516+ItsEmpa@users.noreply.github.com> | 2024-05-30 22:22:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-30 22:22:25 +0200 |
commit | 4509e8e04255a6c224bada3c15c1feca642f5339 (patch) | |
tree | 9e19ba1745c85fcc76ea969ede7b9f69a1db8872 /src/main/java/at | |
parent | 469e6187ee15d3559f91ce21be7a37d13d16f809 (diff) | |
download | skyhanni-4509e8e04255a6c224bada3c15c1feca642f5339.tar.gz skyhanni-4509e8e04255a6c224bada3c15c1feca642f5339.tar.bz2 skyhanni-4509e8e04255a6c224bada3c15c1feca642f5339.zip |
Fix: Diana chat errors without option turned on (#1942)
Diffstat (limited to 'src/main/java/at')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/event/diana/DianaFixChat.kt | 5 |
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 } |