Skip to content

Commit 790f7b3

Browse files
authored
Merge pull request #12 from jaoafa/feat/database-input
feat: typeがdatabaseでinputが指定されている場合、タイルデータをinputの場所にダウンロードする
2 parents 9c1bbfc + 9ea0953 commit 790f7b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/Main.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ class Main : CliktCommand(
139139

140140
val inputDirectory = when (inputType) {
141141
InputType.FILE -> input.toString()
142-
InputType.DATABASE -> createTempDirectory("dynmap-processor").toFile().apply {
142+
InputType.DATABASE -> if (input != null) input.toString() else createTempDirectory("dynmap-processor").toFile().apply {
143143
deleteOnExit()
144144
}.absolutePath
145145
}

0 commit comments

Comments
 (0)