aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLorenz <ESs95s3P5z8Pheb>2022-07-16 01:16:45 +0200
committerLorenz <ESs95s3P5z8Pheb>2022-07-16 01:16:45 +0200
commit36b887ad01eff9bae8d520b4811fce98672ed792 (patch)
tree481972954883044cd71a5166fe3a2fa52a669667 /src
parent8a7a6f64852a4731630d6b76da2bad522bf93fb5 (diff)
downloadskyhanni-36b887ad01eff9bae8d520b4811fce98672ed792.tar.gz
skyhanni-36b887ad01eff9bae8d520b4811fce98672ed792.tar.bz2
skyhanni-36b887ad01eff9bae8d520b4811fce98672ed792.zip
extra check for minion
Diffstat (limited to 'src')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/items/ItemDisplayOverlayFeatures.kt8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/items/ItemDisplayOverlayFeatures.kt b/src/main/java/at/hannibal2/skyhanni/items/ItemDisplayOverlayFeatures.kt
index b61d1706e..d810aece5 100644
--- a/src/main/java/at/hannibal2/skyhanni/items/ItemDisplayOverlayFeatures.kt
+++ b/src/main/java/at/hannibal2/skyhanni/items/ItemDisplayOverlayFeatures.kt
@@ -97,9 +97,11 @@ class ItemDisplayOverlayFeatures {
if (SkyHanniMod.feature.items.displayMinionTier) {
if (name.contains(" Minion ")) {
- val array = name.split(" ")
- val last = array[array.size - 1]
- return last.romanToDecimal().toString()
+ if (item.getLore().any { it.contains("Place this minion") }) {
+ val array = name.split(" ")
+ val last = array[array.size - 1]
+ return last.romanToDecimal().toString()
+ }
}
}