aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/mixins/hooks/GuiIngameHook.kt3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/mixins/hooks/GuiIngameHook.kt b/src/main/java/at/hannibal2/skyhanni/mixins/hooks/GuiIngameHook.kt
index 8eb8442cd..896313d12 100644
--- a/src/main/java/at/hannibal2/skyhanni/mixins/hooks/GuiIngameHook.kt
+++ b/src/main/java/at/hannibal2/skyhanni/mixins/hooks/GuiIngameHook.kt
@@ -38,7 +38,8 @@ private fun replaceString(text: String): String? {
val hasPests = text.contains("ൠ")
val pestSuffix = if (hasPests) {
val pests = text.last().digitToInt()
- " §7(§4${pests}ൠ§7)"
+ val color = if (pests >= 4) "§c" else "§6"
+ " §7(${color}${pests}ൠ§7)"
} else ""
val name = plot?.let {
if (it.isBarn()) "§aThe Barn" else {