aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/com/ambientaddons/features
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/com/ambientaddons/features')
-rw-r--r--src/main/kotlin/com/ambientaddons/features/misc/Welcome.kt7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/main/kotlin/com/ambientaddons/features/misc/Welcome.kt b/src/main/kotlin/com/ambientaddons/features/misc/Welcome.kt
index ac99025..70d4556 100644
--- a/src/main/kotlin/com/ambientaddons/features/misc/Welcome.kt
+++ b/src/main/kotlin/com/ambientaddons/features/misc/Welcome.kt
@@ -2,6 +2,7 @@ package com.ambientaddons.features.misc
import AmbientAddons.Companion.mc
import AmbientAddons.Companion.persistentData
+import com.ambientaddons.utils.Chat
import com.ambientaddons.utils.SBLocation
import gg.essential.universal.UChat
import net.minecraftforge.event.world.WorldEvent
@@ -14,12 +15,10 @@ object Welcome {
@SubscribeEvent
fun onTick(event: ClientTickEvent) {
if (!persistentData.isFirstLoad || event.phase != TickEvent.Phase.START || !SBLocation.inSkyblock) return
- val chatWidth = mc.ingameGUI?.chatGUI?.chatWidth ?: return
persistentData.isFirstLoad = false
persistentData.save()
- val chatBreak = "§9§m" + "-".repeat(chatWidth / mc.fontRendererObj.getStringWidth("-"))
UChat.chat("""
- $chatBreak
+ ${Chat.getChatBreak()}
§b§lThanks for installing AmbientAddons Forge!
§eUse §a§l/ambient §r§eto access GUI settings.
@@ -27,7 +26,7 @@ object Welcome {
§eTo configure auto-buy, use §a/ambient buy§e.
§eTo configure salvage features, use §a/ambient salvage§e.
- $chatBreak
+ ${Chat.getChatBreak()}
""".trimIndent())
}
} \ No newline at end of file