aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJ10a1n15 <45315647+j10a1n15@users.noreply.github.com>2024-10-01 19:59:20 +0200
committerGitHub <noreply@github.com>2024-10-01 19:59:20 +0200
commit0135920e7bd317211514d75f6436463507654866 (patch)
tree4a1bef266d7cf0cd04e0b9abda49e93e571693b0 /src
parent064a8b388727eb00d2fc30243385305c69cad69a (diff)
downloadskyhanni-0135920e7bd317211514d75f6436463507654866.tar.gz
skyhanni-0135920e7bd317211514d75f6436463507654866.tar.bz2
skyhanni-0135920e7bd317211514d75f6436463507654866.zip
Fix: Minister in Calendar Color Reset (#2632)
Diffstat (limited to 'src')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/inventory/MinisterInCalendar.kt3
1 files changed, 2 insertions, 1 deletions
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)
}