From 5f6f212ad0ce2df14fb2d51f7c7f37d547e142e9 Mon Sep 17 00:00:00 2001 From: Empa <42304516+ItsEmpa@users.noreply.github.com> Date: Sat, 13 Apr 2024 23:14:52 +0200 Subject: Improvement: Enchanted Book Bundle Name (#1391) --- src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/main/java/at/hannibal2') 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 { -- cgit