mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-11 19:14:05 +09:00
Echo().execute(message) is now just Echo(message)
Former-commit-id: 851e141fc91b170190d6027f42f59906dda0f31f Former-commit-id: 03dbb9da1788e1c50e84ae33d95f76194ad9a08d
This commit is contained in:
@@ -17,19 +17,19 @@ internal object SetLocale : ConsoleCommand {
|
||||
val prevLocale = Terrarum.gameLocale
|
||||
Terrarum.gameLocale = args[1]
|
||||
try {
|
||||
Echo.execute("Set locale to '" + Terrarum.gameLocale + "'.")
|
||||
Echo("Set locale to '" + Terrarum.gameLocale + "'.")
|
||||
}
|
||||
catch (e: IOException) {
|
||||
Echo.execute("could not read lang file.")
|
||||
Echo("could not read lang file.")
|
||||
Terrarum.gameLocale = prevLocale
|
||||
}
|
||||
|
||||
}
|
||||
else if (args.size == 1) {
|
||||
|
||||
Echo.execute("Locales:")
|
||||
Echo("Locales:")
|
||||
|
||||
Lang.languageList.forEach { Echo.execute("--> $it") }
|
||||
Lang.languageList.forEach { Echo("--> $it") }
|
||||
}
|
||||
else {
|
||||
printUsage()
|
||||
@@ -37,6 +37,6 @@ internal object SetLocale : ConsoleCommand {
|
||||
}
|
||||
|
||||
override fun printUsage() {
|
||||
Echo.execute("Usage: setlocale [locale]")
|
||||
Echo("Usage: setlocale [locale]")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user