aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLorenz <lo.scherf@gmail.com>2022-08-22 04:06:27 +0200
committerLorenz <lo.scherf@gmail.com>2022-08-22 04:06:27 +0200
commitbd1cae7a2d14aef7ee2f8d4e58f1d943099ee81f (patch)
treead296ec323268a8581760ca9631a004e392016b0 /src
parent5f10fc9d3938e47baf3fe40fa50e49c564031c36 (diff)
downloadskyhanni-bd1cae7a2d14aef7ee2f8d4e58f1d943099ee81f.tar.gz
skyhanni-bd1cae7a2d14aef7ee2f8d4e58f1d943099ee81f.tar.bz2
skyhanni-bd1cae7a2d14aef7ee2f8d4e58f1d943099ee81f.zip
typo
Diffstat (limited to 'src')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/items/CrimsonArmorTier.kt8
1 files changed, 4 insertions, 4 deletions
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<String>()
+ private val armorNames = mutableListOf<String>()
private val tiers = mutableMapOf<String, Int>()
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