aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at
diff options
context:
space:
mode:
authorEmpa <42304516+ItsEmpa@users.noreply.github.com>2024-04-13 23:14:52 +0200
committerGitHub <noreply@github.com>2024-04-13 23:14:52 +0200
commit5f6f212ad0ce2df14fb2d51f7c7f37d547e142e9 (patch)
treee41dc97cf781484398a21e5bbff73c7e1c9af654 /src/main/java/at
parent44fe2f83f1469c186ef00c44438893abeabeae3b (diff)
downloadskyhanni-5f6f212ad0ce2df14fb2d51f7c7f37d547e142e9.tar.gz
skyhanni-5f6f212ad0ce2df14fb2d51f7c7f37d547e142e9.tar.bz2
skyhanni-5f6f212ad0ce2df14fb2d51f7c7f37d547e142e9.zip
Improvement: Enchanted Book Bundle Name (#1391)
Diffstat (limited to 'src/main/java/at')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt
index 5104c52b3..01d049dcb 100644
--- a/src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt
+++ b/src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt
@@ -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 {