mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-11 02:54:04 +09:00
Echo().execute(message) is now just Echo(message)
Former-commit-id: 851e141fc91b170190d6027f42f59906dda0f31f Former-commit-id: 03dbb9da1788e1c50e84ae33d95f76194ad9a08d
This commit is contained in:
@@ -45,11 +45,11 @@ internal object ExportMap : ConsoleCommand {
|
||||
try {
|
||||
RasterWriter.writePNG_RGB(
|
||||
Terrarum.ingame.world.width, Terrarum.ingame.world.height, mapData, dir + args[1] + ".png")
|
||||
Echo.execute("ExportMap: exported to " + args[1] + ".png")
|
||||
Echo("ExportMap: exported to " + args[1] + ".png")
|
||||
|
||||
}
|
||||
catch (e: IOException) {
|
||||
Echo.execute("ExportMap: IOException raised.")
|
||||
Echo("ExportMap: IOException raised.")
|
||||
e.printStackTrace()
|
||||
}
|
||||
|
||||
@@ -66,9 +66,9 @@ internal object ExportMap : ConsoleCommand {
|
||||
|
||||
override fun printUsage() {
|
||||
|
||||
Echo.execute("Usage: export <name>")
|
||||
Echo.execute("Exports current map into echo image.")
|
||||
Echo.execute("The image can be found at %adddata%/terrarum/Exports")
|
||||
Echo("Usage: export <name>")
|
||||
Echo("Exports current map into echo image.")
|
||||
Echo("The image can be found at %adddata%/terrarum/Exports")
|
||||
}
|
||||
|
||||
private fun buildColorTable() {
|
||||
|
||||
Reference in New Issue
Block a user