diff options
| author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-03-09 18:42:48 +0100 |
|---|---|---|
| committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-03-09 18:42:48 +0100 |
| commit | 47c13c1d63dd3662c646b399aa1c429e216ca802 (patch) | |
| tree | aa8d7dadd2a82ae52770cae0457496a8b6ccd897 | |
| parent | 90b184ecfccfcada882ce8cd89286b0ffa4cdef3 (diff) | |
| download | SkyHanni-47c13c1d63dd3662c646b399aa1c429e216ca802.tar.gz SkyHanni-47c13c1d63dd3662c646b399aa1c429e216ca802.tar.bz2 SkyHanni-47c13c1d63dd3662c646b399aa1c429e216ca802.zip | |
Fixed StringIndexOutOfBoundsException in garden visitor keybinds
| -rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/garden/GardenVisitorFeatures.kt | 2 |
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) { |
