diff options
author | Empa <42304516+ItsEmpa@users.noreply.github.com> | 2024-04-13 23:14:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-13 23:14:52 +0200 |
commit | 5f6f212ad0ce2df14fb2d51f7c7f37d547e142e9 (patch) | |
tree | e41dc97cf781484398a21e5bbff73c7e1c9af654 /src/main/java/at/hannibal2 | |
parent | 44fe2f83f1469c186ef00c44438893abeabeae3b (diff) | |
download | skyhanni-5f6f212ad0ce2df14fb2d51f7c7f37d547e142e9.tar.gz skyhanni-5f6f212ad0ce2df14fb2d51f7c7f37d547e142e9.tar.bz2 skyhanni-5f6f212ad0ce2df14fb2d51f7c7f37d547e142e9.zip |
Improvement: Enchanted Book Bundle Name (#1391)
Diffstat (limited to 'src/main/java/at/hannibal2')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt | 3 |
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 { |