aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-03-09 18:42:48 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-03-09 18:42:48 +0100
commit97d907ac27092abef7d1c7bbda2f860488ca3044 (patch)
treeaa8d7dadd2a82ae52770cae0457496a8b6ccd897 /src/main/java/at
parentb56c46d44964c1c0f1a50dd6e29be16c2d85d28f (diff)
downloadskyhanni-97d907ac27092abef7d1c7bbda2f860488ca3044.tar.gz
skyhanni-97d907ac27092abef7d1c7bbda2f860488ca3044.tar.bz2
skyhanni-97d907ac27092abef7d1c7bbda2f860488ca3044.zip
Fixed StringIndexOutOfBoundsException in garden visitor keybinds
Diffstat (limited to 'src/main/java/at')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/GardenVisitorFeatures.kt2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenVisitorFeatures.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenVisitorFeatures.kt
index 20ee57028..3f1c31fc7 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenVisitorFeatures.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenVisitorFeatures.kt
@@ -137,6 +137,8 @@ class GardenVisitorFeatures {
var itemsWithSpeedCounter = 0
var endReached = false
for ((i, l) in list.toMutableList().withIndex()) {
+ if (l.length < 4) continue
+
val line = l.substring(4)
if (line == "") {
if (!endReached) {