Skip to content

Commit

Permalink
Improvement: Enchanted Book Bundle Name (#1391)
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsEmpa authored Apr 13, 2024
1 parent 44fe2f8 commit 5f6f212
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,9 @@ object ItemUtils {
if (name.endsWith("Enchanted Book")) {
return itemStack.getLore()[0]
}
if (name.endsWith("Enchanted Book Bundle")) {
return name.replace("Enchanted Book", itemStack.getLore()[0].removeColor())
}

// hide pet level
PetAPI.getCleanName(name)?.let {
Expand Down

0 comments on commit 5f6f212

Please sign in to comment.