From 4509e8e04255a6c224bada3c15c1feca642f5339 Mon Sep 17 00:00:00 2001 From: Empa <42304516+ItsEmpa@users.noreply.github.com> Date: Thu, 30 May 2024 22:22:25 +0200 Subject: Fix: Diana chat errors without option turned on (#1942) --- .../java/at/hannibal2/skyhanni/features/event/diana/DianaFixChat.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') 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 } -- cgit