mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-13 12:04:06 +09:00
saving performed on separate thread so that save-in-progress UI would work
This commit is contained in:
@@ -17,12 +17,14 @@ internal object Echo : ConsoleCommand {
|
||||
for (ch in single_line) {
|
||||
if (ch == '\n') {
|
||||
(Terrarum.ingame!!.consoleHandler as ConsoleWindow).sendMessage(sb.toString())
|
||||
println(sb.toString())
|
||||
sb.delete(0, sb.length - 1)
|
||||
}
|
||||
else
|
||||
sb.append(ch)
|
||||
}
|
||||
(Terrarum.ingame!!.consoleHandler as ConsoleWindow).sendMessage(sb.toString())
|
||||
println(sb.toString())
|
||||
}
|
||||
|
||||
operator fun invoke(args: Array<String>) = execute(args)
|
||||
|
||||
Reference in New Issue
Block a user