Skip to content

Commit

Permalink
fix: mainmenu no-uppercase
Browse files Browse the repository at this point in the history
  • Loading branch information
opZywl committed Jan 16, 2025
1 parent 728866b commit 1fa584c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -282,14 +282,14 @@ class GuiMainMenu : AbstractScreen(), GuiYesNoCallback {

/**
* Quick method to colorize changelog lines by prefix:
* "~ " => Uppercase them
* "~ " => "[~]"
* "+ " => "[+]"
* "- " => "[-]"
* "* " => "[*]"
*/
private fun formatChangelogLine(line: String): String {
return when {
line.startsWith("~ ") -> "§r " + line.uppercase(Locale.getDefault())
line.startsWith("~ ") -> "§7[§r~§7] §r" + line.removePrefix("~ ").trim()
line.startsWith("+ ") -> "§7[§a+§7] §r" + line.removePrefix("+ ").trim()
line.startsWith("- ") -> "§7[§c-§7] §r" + line.removePrefix("- ").trim()
line.startsWith("* ") -> "§7[§e*§7] §r" + line.removePrefix("* ").trim()
Expand Down

0 comments on commit 1fa584c

Please sign in to comment.