diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-09-21 11:07:15 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-09-21 11:07:15 +0200 |
commit | 8e71a5e2a2d89ada948ab752f055cb7611b2a219 (patch) | |
tree | e241293c6da06ceec17ce6ec596b62c289e38af7 /src/main/java/at/hannibal2/skyhanni/features/fishing | |
parent | 8a0a2fb1e27ee2a08a0bcb14634ab8ef134ba61b (diff) | |
download | skyhanni-8e71a5e2a2d89ada948ab752f055cb7611b2a219.tar.gz skyhanni-8e71a5e2a2d89ada948ab752f055cb7611b2a219.tar.bz2 skyhanni-8e71a5e2a2d89ada948ab752f055cb7611b2a219.zip |
code cleanup
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/fishing')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/fishing/TotemOfCorruption.kt | 2 |
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) |