aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/mixins/hooks
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-11-26 17:11:57 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-11-26 17:11:57 +0100
commit5a710d5101cd24371f3476c837b1a24f83454803 (patch)
tree375c9cdfc87dec06b931fc87abbf5a2d06163211 /src/main/java/at/hannibal2/skyhanni/mixins/hooks
parentec40d26903ef256cea3175693038400e64981f1b (diff)
downloadskyhanni-5a710d5101cd24371f3476c837b1a24f83454803.tar.gz
skyhanni-5a710d5101cd24371f3476c837b1a24f83454803.tar.bz2
skyhanni-5a710d5101cd24371f3476c837b1a24f83454803.zip
code cleanup
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/mixins/hooks')
-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"
}