diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-11-12 11:07:33 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-11-12 11:07:33 +0100 |
commit | 6769be83e485ffa961937e54ffab327c6f2c32f5 (patch) | |
tree | 6d2d9f48919e2040123ea06d28d8446a71b5f5fd /src | |
parent | 3c46a9936206e6c1cd2f9760de9a311c0566d6fd (diff) | |
download | skyhanni-6769be83e485ffa961937e54ffab327c6f2c32f5.tar.gz skyhanni-6769be83e485ffa961937e54ffab327c6f2c32f5.tar.bz2 skyhanni-6769be83e485ffa961937e54ffab327c6f2c32f5.zip |
Fixed showing minion level as 101 in some menus.
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/inventory/ItemDisplayOverlayFeatures.kt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/inventory/ItemDisplayOverlayFeatures.kt b/src/main/java/at/hannibal2/skyhanni/features/inventory/ItemDisplayOverlayFeatures.kt index 739ba6a1b..aa3a46ed2 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/inventory/ItemDisplayOverlayFeatures.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/inventory/ItemDisplayOverlayFeatures.kt @@ -73,7 +73,9 @@ class ItemDisplayOverlayFeatures { } } - if (SkyHanniMod.feature.inventory.itemNumberAsStackSize.contains(5) && itemName.contains(" Minion ") && item.getLore().any { it.contains("Place this minion") }) { + if (SkyHanniMod.feature.inventory.itemNumberAsStackSize.contains(5) && itemName.contains(" Minion ") && + !itemName.contains("Recipe") && item.getLore().any { it.contains("Place this minion") } + ) { val array = itemName.split(" ") val last = array[array.size - 1] return last.romanToDecimal().toString() |