aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-08-29 15:15:50 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-08-29 15:15:50 +0200
commit294aa4be9dbafe7e8f82efb2f406661c860a992a (patch)
tree528616b0a179fbc54b3fc34b4c6d198bb71b811d /src/main/java/at/hannibal2
parentd4ff1320053e16472956eb0b338c6b2feeef2639 (diff)
downloadskyhanni-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.kt4
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