diff options
author | Lorenz <ESs95s3P5z8Pheb> | 2022-07-16 01:16:45 +0200 |
---|---|---|
committer | Lorenz <ESs95s3P5z8Pheb> | 2022-07-16 01:16:45 +0200 |
commit | 36b887ad01eff9bae8d520b4811fce98672ed792 (patch) | |
tree | 481972954883044cd71a5166fe3a2fa52a669667 /src/main/java/at/hannibal2/skyhanni/items | |
parent | 8a7a6f64852a4731630d6b76da2bad522bf93fb5 (diff) | |
download | skyhanni-36b887ad01eff9bae8d520b4811fce98672ed792.tar.gz skyhanni-36b887ad01eff9bae8d520b4811fce98672ed792.tar.bz2 skyhanni-36b887ad01eff9bae8d520b4811fce98672ed792.zip |
extra check for minion
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/items')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/items/ItemDisplayOverlayFeatures.kt | 8 |
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() + } } } |