From 294aa4be9dbafe7e8f82efb2f406661c860a992a Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Tue, 29 Aug 2023 15:15:50 +0200 Subject: Fixing IllegalStateException at ToolTooltipTweaks --- .../java/at/hannibal2/skyhanni/features/garden/ToolTooltipTweaks.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/main/java') diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/ToolTooltipTweaks.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/ToolTooltipTweaks.kt index 759f9f0ec..e0931cd4c 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/ToolTooltipTweaks.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/ToolTooltipTweaks.kt @@ -104,9 +104,7 @@ class ToolTooltipTweaks { if (removingFarmhandDescription) { iterator.remove() removingFarmhandDescription = line != "§5§o" - } - - if (removingCounterDescription && !line.startsWith("§5§o§7You have")) { + } else if (removingCounterDescription && !line.startsWith("§5§o§7You have")) { iterator.remove() } else { removingCounterDescription = false -- cgit