aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-09-21 11:07:15 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-09-21 11:07:15 +0200
commit8e71a5e2a2d89ada948ab752f055cb7611b2a219 (patch)
treee241293c6da06ceec17ce6ec596b62c289e38af7
parent8a0a2fb1e27ee2a08a0bcb14634ab8ef134ba61b (diff)
downloadskyhanni-8e71a5e2a2d89ada948ab752f055cb7611b2a219.tar.gz
skyhanni-8e71a5e2a2d89ada948ab752f055cb7611b2a219.tar.bz2
skyhanni-8e71a5e2a2d89ada948ab752f055cb7611b2a219.zip
code cleanup
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/fishing/TotemOfCorruption.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/fishing/TotemOfCorruption.kt b/src/main/java/at/hannibal2/skyhanni/features/fishing/TotemOfCorruption.kt
index c8ff17a9e..9896580c6 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/fishing/TotemOfCorruption.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/fishing/TotemOfCorruption.kt
@@ -158,7 +158,7 @@ object TotemOfCorruption {
val owner = getOwner(totem) ?: return@mapNotNull null
val timeToWarn = config.warnWhenAboutToExpire.seconds
- if (timeToWarn > 0.seconds && timeRemaining <= timeToWarn && !warnedTotems.contains(totem.uniqueID)) {
+ if (timeToWarn > 0.seconds && timeRemaining <= timeToWarn && totem.uniqueID !in warnedTotems) {
playPlingSound()
sendTitle("§c§lTotem of Corruption §eabout to expire!", 5.seconds)
warnedTotems.add(totem.uniqueID)