aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/java/at/hannibal2/skyhanni/mixins/hooks/GuiIngameHook.kt4
1 files changed, 1 insertions, 3 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 d976eb056..4785c0da2 100644
--- a/src/main/java/at/hannibal2/skyhanni/mixins/hooks/GuiIngameHook.kt
+++ b/src/main/java/at/hannibal2/skyhanni/mixins/hooks/GuiIngameHook.kt
@@ -40,9 +40,7 @@ private fun replaceString(text: String): String? {
" §7(§4${pests}ൠ§7)"
} else ""
val name = plot?.let {
- if (it.isBarn()) {
- "§aThe Barn"
- } else "§b" + it.name
+ if (it.isBarn()) "§aThe Barn" else "§b" + it.name
} ?: "§aGarden §cOutside"
return " §7⏣ $name$pestSuffix"
}