From 97d907ac27092abef7d1c7bbda2f860488ca3044 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Thu, 9 Mar 2023 18:42:48 +0100 Subject: Fixed StringIndexOutOfBoundsException in garden visitor keybinds --- .../java/at/hannibal2/skyhanni/features/garden/GardenVisitorFeatures.kt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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) { -- cgit