From 0135920e7bd317211514d75f6436463507654866 Mon Sep 17 00:00:00 2001 From: J10a1n15 <45315647+j10a1n15@users.noreply.github.com> Date: Tue, 1 Oct 2024 19:59:20 +0200 Subject: Fix: Minister in Calendar Color Reset (#2632) --- .../at/hannibal2/skyhanni/features/inventory/MinisterInCalendar.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/main/java/at/hannibal2/skyhanni/features/inventory/MinisterInCalendar.kt b/src/main/java/at/hannibal2/skyhanni/features/inventory/MinisterInCalendar.kt index d078f0d1a..655f1f919 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/inventory/MinisterInCalendar.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/inventory/MinisterInCalendar.kt @@ -13,6 +13,7 @@ import at.hannibal2.skyhanni.utils.LorenzUtils import at.hannibal2.skyhanni.utils.NEUInternalName.Companion.asInternalName import at.hannibal2.skyhanni.utils.NEUItems.getItemStack import at.hannibal2.skyhanni.utils.RegexUtils.matches +import at.hannibal2.skyhanni.utils.StringUtils.removeResets import at.hannibal2.skyhanni.utils.StringUtils.splitLines import net.minecraft.client.player.inventory.ContainerLocalMenu import net.minecraft.item.ItemStack @@ -74,7 +75,7 @@ object MinisterInCalendar { addAll(prefix) for (perk in minister.activePerks) { add("$ministerColor${perk.perkName}") - addAll(perk.description.splitLines(170).removePrefix("§r").split("\n").map { "§7$it" }) + addAll(perk.description.splitLines(170).removeResets().split("\n").map { "§7$it" }) } addAll(suffix) } -- cgit