diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-08-29 15:15:50 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-08-29 15:15:50 +0200 |
commit | 294aa4be9dbafe7e8f82efb2f406661c860a992a (patch) | |
tree | 528616b0a179fbc54b3fc34b4c6d198bb71b811d /src/main/java/at/hannibal2 | |
parent | d4ff1320053e16472956eb0b338c6b2feeef2639 (diff) | |
download | skyhanni-294aa4be9dbafe7e8f82efb2f406661c860a992a.tar.gz skyhanni-294aa4be9dbafe7e8f82efb2f406661c860a992a.tar.bz2 skyhanni-294aa4be9dbafe7e8f82efb2f406661c860a992a.zip |
Fixing IllegalStateException at ToolTooltipTweaks
Diffstat (limited to 'src/main/java/at/hannibal2')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/garden/ToolTooltipTweaks.kt | 4 |
1 files changed, 1 insertions, 3 deletions
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 |