diff options
Diffstat (limited to 'src/main/java/at/hannibal2')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/utils/LorenzRarity.kt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/LorenzRarity.kt b/src/main/java/at/hannibal2/skyhanni/utils/LorenzRarity.kt index a9e6bc771..58370bc80 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/LorenzRarity.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/LorenzRarity.kt @@ -53,8 +53,9 @@ enum class LorenzRarity(val color: LorenzColor, val id: Int) { fun readItemRarity(itemStack: ItemStack): LorenzRarity? {
for (line in itemStack.getLore()) {
+ val string = line.replace("SHINY ", "")
for (rarity in LorenzRarity.entries) {
- if (line.startsWith(rarity.normalName) || line.startsWith(rarity.recombName)) {
+ if (string.startsWith(rarity.normalName) || string.startsWith(rarity.recombName)) {
return rarity
}
}
|