From 8e71a5e2a2d89ada948ab752f055cb7611b2a219 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Sat, 21 Sep 2024 11:07:15 +0200 Subject: code cleanup --- .../java/at/hannibal2/skyhanni/features/fishing/TotemOfCorruption.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit