aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-05-11 11:43:09 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-05-11 11:43:09 +0200
commit70881a2644e28f515df7f55deb781f069177c3a3 (patch)
treeb09fb77fa4641493930c2831a5a1017ca2d72067 /src/main/java/at/hannibal2/skyhanni/features
parentba3859cbeeb289c3a9f696a17501496c75899769 (diff)
downloadskyhanni-70881a2644e28f515df7f55deb781f069177c3a3.tar.gz
skyhanni-70881a2644e28f515df7f55deb781f069177c3a3.tar.bz2
skyhanni-70881a2644e28f515df7f55deb781f069177c3a3.zip
Fixed fire pits warning appear even if disabled
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/slayer/blaze/BlazeSlayerFirePitsWarning.kt8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/slayer/blaze/BlazeSlayerFirePitsWarning.kt b/src/main/java/at/hannibal2/skyhanni/features/slayer/blaze/BlazeSlayerFirePitsWarning.kt
index 298adfca4..ff5558d80 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/slayer/blaze/BlazeSlayerFirePitsWarning.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/slayer/blaze/BlazeSlayerFirePitsWarning.kt
@@ -12,6 +12,7 @@ import net.minecraftforge.fml.common.eventhandler.SubscribeEvent
import net.minecraftforge.fml.common.gameevent.TickEvent
class BlazeSlayerFirePitsWarning {
+ private val config get() = SkyHanniMod.feature.slayer
companion object {
private var lastFirePitsWarning = 0L
@@ -31,7 +32,7 @@ class BlazeSlayerFirePitsWarning {
if (difference > 0) {
if (difference <= 2_000) {
if (nextTickIn++ % 10 == 0) {
- if (SkyHanniMod.feature.slayer.firePitsWarning) {
+ if (config.firePitsWarning) {
SoundUtils.createSound("random.orb", 0.8f).playSound()
}
}
@@ -64,8 +65,8 @@ class BlazeSlayerFirePitsWarning {
}
}
- private fun isEnabled(): Boolean {
- return LorenzUtils.inSkyBlock && DamageIndicatorManager.isBossSpawned(
+ private fun isEnabled() =
+ LorenzUtils.inSkyBlock && config.firePitsWarning && DamageIndicatorManager.isBossSpawned(
BossType.SLAYER_BLAZE_3,
BossType.SLAYER_BLAZE_4,
BossType.SLAYER_BLAZE_QUAZII_3,
@@ -73,5 +74,4 @@ class BlazeSlayerFirePitsWarning {
BossType.SLAYER_BLAZE_TYPHOEUS_3,
BossType.SLAYER_BLAZE_TYPHOEUS_4,
)
- }
} \ No newline at end of file