aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2
diff options
context:
space:
mode:
authorCalMWolfs <94038482+CalMWolfs@users.noreply.github.com>2024-04-05 23:26:34 +1100
committerGitHub <noreply@github.com>2024-04-05 23:26:34 +1100
commitf3c5a44c0a4d4cf23bd3d99b8e42255254514d53 (patch)
treeb0b3098a69add66aa6c8a51821b99aa16d07ee8b /src/main/java/at/hannibal2
parent2b5d4e8af999fe7e917b4e357411cf4e921bea39 (diff)
downloadskyhanni-f3c5a44c0a4d4cf23bd3d99b8e42255254514d53.tar.gz
skyhanni-f3c5a44c0a4d4cf23bd3d99b8e42255254514d53.tar.bz2
skyhanni-f3c5a44c0a4d4cf23bd3d99b8e42255254514d53.zip
Fix: Small performance boost (#1365)
Diffstat (limited to 'src/main/java/at/hannibal2')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/fishing/TotemOfCorruption.kt1
1 files changed, 1 insertions, 0 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 3df18c3e6..54e5d6c30 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/fishing/TotemOfCorruption.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/fishing/TotemOfCorruption.kt
@@ -80,6 +80,7 @@ class TotemOfCorruption {
@SubscribeEvent
fun onRenderWorld(event: LorenzRenderWorldEvent) {
if (!isEffectiveAreaEnabled()) return
+ if (totems.isEmpty()) return
val color = config.color.toChromaColor()
for (totem in totems) {