diff options
author | Vixid <52578495+VixidDev@users.noreply.github.com> | 2024-04-27 16:50:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-27 17:50:10 +0200 |
commit | a7d2a2c0346b864ea597300ed4eb9d024457e8b7 (patch) | |
tree | a6020a5eb66649c0e8a276f1c5ad499e25eda94a /src/main/java/at/hannibal2/skyhanni | |
parent | 69273d6df1fcb8f1d2b2e3b8357b48973d0a8dc2 (diff) | |
download | skyhanni-a7d2a2c0346b864ea597300ed4eb9d024457e8b7.tar.gz skyhanni-a7d2a2c0346b864ea597300ed4eb9d024457e8b7.tar.bz2 skyhanni-a7d2a2c0346b864ea597300ed4eb9d024457e8b7.zip |
Fix: IndexOutOfBounds Error in Enchant Parser (#1569)
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/misc/items/enchants/EnchantParser.kt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/items/enchants/EnchantParser.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/items/enchants/EnchantParser.kt index 420a1a851..ac71ecc6a 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/misc/items/enchants/EnchantParser.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/misc/items/enchants/EnchantParser.kt @@ -346,6 +346,7 @@ object EnchantParser { var i = 1 for (total in 0 until (1 + item.enchantmentTagList.tagCount())) { + if (i + 1 == loreList.size) break val line = loreList[i] if (grayEnchantPattern.matcher(line).matches()) { lastGrayEnchant = i |