From f3c5a44c0a4d4cf23bd3d99b8e42255254514d53 Mon Sep 17 00:00:00 2001 From: CalMWolfs <94038482+CalMWolfs@users.noreply.github.com> Date: Fri, 5 Apr 2024 23:26:34 +1100 Subject: Fix: Small performance boost (#1365) --- .../java/at/hannibal2/skyhanni/features/fishing/TotemOfCorruption.kt | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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) { -- cgit