From a7d2a2c0346b864ea597300ed4eb9d024457e8b7 Mon Sep 17 00:00:00 2001 From: Vixid <52578495+VixidDev@users.noreply.github.com> Date: Sat, 27 Apr 2024 16:50:10 +0100 Subject: Fix: IndexOutOfBounds Error in Enchant Parser (#1569) --- .../at/hannibal2/skyhanni/features/misc/items/enchants/EnchantParser.kt | 1 + 1 file changed, 1 insertion(+) (limited to 'src/main/java/at/hannibal2/skyhanni/features') 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 -- cgit