aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/data/HotmData.kt
diff options
context:
space:
mode:
authorEmpa <42304516+ItsEmpa@users.noreply.github.com>2024-07-21 12:15:45 +0200
committerGitHub <noreply@github.com>2024-07-21 12:15:45 +0200
commit39f46e73324b2e8ee0d8971e60588afb143f1fdc (patch)
tree012f554e695c5fe94bfe6fbb73def8a2ad8bd02a /src/main/java/at/hannibal2/skyhanni/data/HotmData.kt
parent34ac5b7becc5dbf308a56e49729c4aa1a780bbe8 (diff)
downloadskyhanni-39f46e73324b2e8ee0d8971e60588afb143f1fdc.tar.gz
skyhanni-39f46e73324b2e8ee0d8971e60588afb143f1fdc.tar.bz2
skyhanni-39f46e73324b2e8ee0d8971e60588afb143f1fdc.zip
Backend: RegexUtils deprecation and new functions (#2160)
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/data/HotmData.kt')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/data/HotmData.kt6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/data/HotmData.kt b/src/main/java/at/hannibal2/skyhanni/data/HotmData.kt
index 2d8ea9457..c484f2ca9 100644
--- a/src/main/java/at/hannibal2/skyhanni/data/HotmData.kt
+++ b/src/main/java/at/hannibal2/skyhanni/data/HotmData.kt
@@ -567,7 +567,7 @@ enum class HotmData(
}
entry.enabled = lore.any { enabledPattern.matches(it) }
- if (entry == SKY_MALL) handelSkyMall(lore)
+ if (entry == SKY_MALL) handleSkyMall(lore)
}
private fun Slot.handlePowder(): Boolean {
@@ -620,10 +620,10 @@ enum class HotmData(
"§aYour Current Effect",
)
- private fun handelSkyMall(lore: List<String>) {
+ private fun handleSkyMall(lore: List<String>) {
if (!SKY_MALL.enabled || !SKY_MALL.isUnlocked) HotmAPI.skymall = null
else {
- val index = lore.indexOfFirstMatch(skyMallCurrentEffect) ?: run {
+ val index = skyMallCurrentEffect.indexOfFirstMatch(lore) ?: run {
ErrorManager.logErrorStateWithData(
"Could not read the skymall effect from the hotm tree",
"skyMallCurrentEffect didn't match",