From bd1cae7a2d14aef7ee2f8d4e58f1d943099ee81f Mon Sep 17 00:00:00 2001 From: Lorenz Date: Mon, 22 Aug 2022 04:06:27 +0200 Subject: typo --- .../java/at/hannibal2/skyhanni/features/items/CrimsonArmorTier.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/main/java/at') diff --git a/src/main/java/at/hannibal2/skyhanni/features/items/CrimsonArmorTier.kt b/src/main/java/at/hannibal2/skyhanni/features/items/CrimsonArmorTier.kt index b18a2ca8b..4bcc5051b 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/items/CrimsonArmorTier.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/items/CrimsonArmorTier.kt @@ -13,7 +13,7 @@ import java.util.regex.Pattern class CrimsonArmorTier { - private val armors = mutableListOf() + private val armorNames = mutableListOf() private val tiers = mutableMapOf() private val STAR_FIND_PATCHER = Pattern.compile("(.*)§.✪(.*)") private val armorParts = listOf("Helmet", "Chestplate", "Leggings", "Boots") @@ -42,8 +42,8 @@ class CrimsonArmorTier { try { val items = event.getConstant("Items")!! if (items.has("crimson_armors")) { - armors.clear() - armors.addAll(items.getAsJsonArray("crimson_armors").map { it.asString }) + armorNames.clear() + armorNames.addAll(items.getAsJsonArray("crimson_armors").map { it.asString }) } tiers.clear() @@ -86,7 +86,7 @@ class CrimsonArmorTier { private fun getCrimsonNumber(fullName: String): Int { var name = fullName - if (armors.any { name.contains(it) } && armorParts.any { name.contains(it) }) { + if (armorNames.any { name.contains(it) } && armorParts.any { name.contains(it) }) { var gold = 0 var pink = 0 var aqua = 0 -- cgit